1
0
dwelling-upload/build/archlinux/PKGBUILD

31 lines
769 B
Bash

# Maintainer: Alexander "Arav" Andreev <me@arav.su>
pkgname=dwelling-upload
pkgver=23.19.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')
makedepends=('go>=1.17')
provides=('dwelling-upload')
conflicts=('dwelling-upload')
backup=('etc/dwelling/upload.yaml')
source=("https://git.arav.su/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
fi
make VERSION=$pkgver DESTDIR="$pkgdir/"
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
}