1
0
mirror of https://github.com/nxshock/gonx.git synced 2024-11-27 17:11:01 +05:00

Fix PKGBUILD

This commit is contained in:
nxshock 2023-12-28 16:15:54 +05:00
parent 0b430973c9
commit 9b394d902b

View File

@ -6,17 +6,17 @@ arch=('x86_64' 'aarch64')
url="https://github.com/nxshock/$pkgname" url="https://github.com/nxshock/$pkgname"
license=('MIT') license=('MIT')
makedepends=('go' 'git') makedepends=('go' 'git')
source=("$url/$pkgname-$pkgver.tar.gz") source=("git+https://github.com/nxshock/$pkgname#tag=v$pkgver")
sha256sums=('SKIP') sha256sums=('SKIP')
backup=("etc/$pkgname.conf") backup=("etc/$pkgname.conf")
build() { build() {
cd "$pkgname-$pkgver" cd "$pkgname"
go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
} }
package() { package() {
cd "$pkgname-$pkgver" cd "$pkgname"
install -Dm755 "$pkgname" "$pkgdir"/usr/bin/$pkgname install -Dm755 "$pkgname" "$pkgdir"/usr/bin/$pkgname
install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf" install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
install -Dm755 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service install -Dm755 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service