diff options
author | TBK <tbk@jjtc.eu> | 2019-05-23 14:11:58 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-06 22:36:26 -0300 |
commit | 9c5ea606653402a02782ee13d2c2189a86b897cf (patch) | |
tree | bf39d089ff7813423f0b8081c1049adaaac1c3c2 /community/rcon | |
parent | 9ea19de8c13ba57c60e887639e3d964c887b5e85 (diff) | |
download | aports-9c5ea606653402a02782ee13d2c2189a86b897cf.tar.bz2 aports-9c5ea606653402a02782ee13d2c2189a86b897cf.tar.xz |
community/rcon: move from testing
Diffstat (limited to 'community/rcon')
-rw-r--r-- | community/rcon/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/rcon/APKBUILD b/community/rcon/APKBUILD new file mode 100644 index 0000000000..a428d2f02a --- /dev/null +++ b/community/rcon/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: TBK <alpine@jjtc.eu> +# Maintainer: TBK <alpine@jjtc.eu> +pkgname=rcon +pkgver=0.4 +pkgrel=1 +pkgdesc="Source RCON client for command line." +url="https://github.com/n0la/rcon" +arch="all !s390x" +license="BSD-2-Clause" +makedepends="bash-completion cmake glib-dev" +checkdepends="check-dev" +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" +source="$pkgname-$pkgver.tar.gz::https://github.com/n0la/rcon/archive/$pkgver.tar.gz" + +build() { + cmake . -DCMAKE_INSTALL_PREFIX=/usr + make +} + +check() { + make test +} + +package() { + make DESTDIR="$pkgdir" install +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/ +} + +sha512sums="99554288ed6a7061e68d28b60c77664ef21591aa9948a09c25a0b256b13eb06197b97ee44feb9f79bdef68ca61516b0235126948cbd13dff550f843509b93d9e rcon-0.4.tar.gz" |