From 4ffa2d07faa2e6d9b9f013d85a711479e0c6d294 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 24 Apr 2023 00:30:15 +0400 Subject: [PATCH] Version up. Removed unneeded fields. Specified min ver of Go. Set .tar.gz name from $pkgver. Added export GOPATH to make a different gopath. Pass a version to a Makefile. --- build/archlinux/PKGBUILD | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index 5992937..301c393 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -1,31 +1,28 @@ # Maintainer: Alexander "Arav" Andreev pkgname=dwelling-upload -pkgver=23.10.0 +pkgver=23.17.0 pkgrel=1 pkgdesc="Arav's Dwelling / Upload" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://git.arav.su/Arav/dwelling-upload" license=('MIT') -groups=() -depends=() -makedepends=('go') +makedepends=('go>=1.17') provides=('dwelling-upload') conflicts=('dwelling-upload') -replaces=() backup=('etc/dwelling/upload.yaml') -options=() -install= -source=('https://git.arav.top/Arav/dwelling-upload/archive/23.10.0.tar.gz') -noextract=() +source=('https://git.arav.top/Arav/dwelling-upload/archive/v${pkgver}.tar.gz') md5sums=('SKIP') build() { cd "$srcdir/$pkgname" + + export GOPATH="$srcdir"/gopath + if [ ! -f "$(go env GOPATH)/bin/jade" ]; then - make DESTDIR="$pkgdir/" install-jade + make VERSION=$pkgver DESTDIR="$pkgdir/" install-jade fi - make DESTDIR="$pkgdir/" + make VERSION=$pkgver DESTDIR="$pkgdir/" } package() {