From c80d49dab52ec45a9a070b48ab86011b016bd070 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 05:20:05 +0400 Subject: [PATCH] PKGBUILD. Made use of pkgver. Change GOPATH. Install jade. --- build/archlinux/PKGBUILD | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index e591c4f..c646dfa 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -1,30 +1,31 @@ # Maintainer: Alexander "Arav" Andreev pkgname=dwelling-home -pkgver=23.10.0 +pkgver=23.18.0 pkgrel=1 pkgdesc="Arav's dwelling / Home" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://git.arav.su/Arav/dwelling-home" license=('MIT') -groups=() depends=('sqlite') makedepends=('go') provides=('dwelling-home') conflicts=('dwelling-home') -replaces=() -backup=() -options=() -install= -source=('https://git.arav.su/Arav/dwelling-home/archive/23.10.0.tar.gz') -noextract=() +source=("https://git.arav.su/Arav/dwelling-home/archive/v${pkgver}.tar.gz") md5sums=('SKIP') build() { cd "$srcdir/$pkgname" - make DESTDIR="$pkgdir/" + + export GOPATH="$srcdir"/gopath + + if [ ! -f "$(go env GOPATH)/bin/jade" ]; then + make DESTDIR="$pkgdir" install-jade + fi + + make VERSION=$pkgver DESTDIR="$pkgdir/" } package() { cd "$srcdir/$pkgname" - make DESTDIR="$pkgdir/" install + make VERSION=$pkgver DESTDIR="$pkgdir/" install } \ No newline at end of file