Initial commit

This commit is contained in:
nxshock 2023-12-28 16:00:04 +05:00
commit 0b430973c9
14 changed files with 460 additions and 0 deletions

23
PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
pkgname=gonx
pkgver=0.0.1
pkgrel=1
pkgdesc='Simple reverse proxy server'
arch=('x86_64' 'aarch64')
url="https://github.com/nxshock/$pkgname"
license=('MIT')
makedepends=('go' 'git')
source=("$url/$pkgname-$pkgver.tar.gz")
sha256sums=('SKIP')
backup=("etc/$pkgname.conf")
build() {
cd "$pkgname-$pkgver"
go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
}
package() {
cd "$pkgname-$pkgver"
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
}