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