mirror of
https://github.com/nxshock/gonx.git
synced 2024-11-27 17:11:01 +05:00
Fix PKGBUILD
This commit is contained in:
parent
0b430973c9
commit
9b394d902b
6
PKGBUILD
6
PKGBUILD
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user