Set min ver for go dependency. Set GOPATH. Set PREFIX.
This commit is contained in:
parent
285b9f75e2
commit
d1b1d2537f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user