1
0

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.

This commit is contained in:
Alexander Andreev 2023-04-24 00:30:15 +04:00
parent 0007c5e21b
commit 4ffa2d07fa
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -1,31 +1,28 @@
# Maintainer: Alexander "Arav" Andreev <me@arav.su>
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() {