diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c3ea7f68e68 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = rcon-cli + pkgdesc = RCON client for executing queries on game servers + pkgver = 0.10.3 + pkgrel = 1 + url = https://github.com/gorcon/rcon-cli + arch = x86_64 + arch = i686 + license = MIT + makedepends = go + depends = glibc + source = rcon-cli-0.10.3.tar.gz::https://github.com/gorcon/rcon-cli/archive/v0.10.3.tar.gz + sha256sums = e871753e970300ff4fade6bc7e39eb086fd7a87c772657870b071b9e5f0468fe + +pkgname = rcon-cli diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..179edd3614e2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Jeff Henson <jeff@henson.io> + +pkgname=rcon-cli +pkgver=0.10.3 +pkgrel=1 +pkgdesc="RCON client for executing queries on game servers" +arch=('x86_64' 'i686') +url="https://github.com/gorcon/rcon-cli" +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('e871753e970300ff4fade6bc7e39eb086fd7a87c772657870b071b9e5f0468fe') + +build() { + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + GO_LDFLAGS="-linkmode=external -X main.Version=${pkgver}" + go build -ldflags="${GO_LDFLAGS}" -o rcon ./cmd/gorcon/main.go +} + +package() { + cd "${pkgname}-${pkgver}" + install -vDm 755 rcon -t "${pkgdir}/usr/bin/" + install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/" +} |