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