mirror of
https://github.com/nxshock/gonx.git
synced 2024-11-27 17:11:01 +05:00
24 lines
662 B
Bash
24 lines
662 B
Bash
pkgname=gonx
|
|
pkgver=0.0.3
|
|
pkgrel=1
|
|
pkgdesc='Simple reverse proxy server'
|
|
arch=('x86_64' 'aarch64')
|
|
url="https://github.com/nxshock/$pkgname"
|
|
license=('MIT')
|
|
makedepends=('go' 'git')
|
|
source=("git+https://github.com/nxshock/$pkgname#tag=v$pkgver")
|
|
sha256sums=('SKIP')
|
|
backup=("etc/$pkgname.conf")
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|