Fix APKBUILD: use direct srcdir path in build function
This commit is contained in:
@@ -14,12 +14,12 @@ source="$pkgname-$pkgver.tar.gz::https://g.eliaskohout.de/eliaskohout/axolotl/ar
|
|||||||
export GOTOOLCHAIN=auto
|
export GOTOOLCHAIN=auto
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/src"
|
cd "$srcdir/$pkgname-$pkgver/src"
|
||||||
go build -ldflags="-s -w" -trimpath -o "$pkgname" .
|
go build -ldflags="-s -w" -trimpath -o "$pkgname" .
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -Dm755 "$srcdir/src/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
install -Dm755 "$srcdir/$pkgname-$pkgver/src/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||||
|
|
||||||
ln -s "$pkgname" "$pkgdir/usr/bin/ax"
|
ln -s "$pkgname" "$pkgdir/usr/bin/ax"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user