1
0

Set min ver for go dependency. Set GOPATH. Set PREFIX.

This commit is contained in:
Alexander Andreev 2023-03-13 03:18:00 +04:00
parent 285b9f75e2
commit d1b1d2537f
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -8,7 +8,7 @@ url="https://git.arav.su/Arav/dwelling-radio"
license=('MIT')
groups=()
depends=()
makedepends=('go')
makedepends=('go>=1.17')
optdepends=(
'tree: to make a filelist html file'
'ffmpeg: to convert media to ogg')
@ -24,13 +24,17 @@ md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
export GOPATH="$pkgdir"/gopath
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
make DESTDIR="$pkgdir/" install-jade
make DESTDIR="$pkgdir" install-jade
fi
make DESTDIR="$pkgdir/"
make DESTDIR="$pkgdir" PREFIX="/usr"
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" install
make DESTDIR="$pkgdir" PREFIX="/usr" install
}