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')
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user