aboutsummaryrefslogtreecommitdiffstats
path: root/community/rcon
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-01 23:47:28 -0300
committerTBK <tbk@jjtc.eu>2020-04-02 14:41:27 +0000
commitcc2b99c1e7755107fa368835bea269d89a115587 (patch)
treee1af238c43e60a4040c4220469d20d88e0cd26db /community/rcon
parentbcb3edb53efe0e1e1db09b323930a4da578416e6 (diff)
downloadaports-cc2b99c1e7755107fa368835bea269d89a115587.tar.bz2
aports-cc2b99c1e7755107fa368835bea269d89a115587.tar.xz
community/rcon: upgrade to 0.5
Diffstat (limited to 'community/rcon')
-rw-r--r--community/rcon/APKBUILD16
-rw-r--r--community/rcon/no-werror.patch13
2 files changed, 23 insertions, 6 deletions
diff --git a/community/rcon/APKBUILD b/community/rcon/APKBUILD
index a3b67dd169..83984dd152 100644
--- a/community/rcon/APKBUILD
+++ b/community/rcon/APKBUILD
@@ -1,21 +1,24 @@
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=rcon
-pkgver=0.4
-pkgrel=2
+pkgver=0.5
+pkgrel=0
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"
+makedepends="bash-completion cmake glib-dev libbsd-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"
+source="$pkgname-$pkgver.tar.gz::https://github.com/n0la/rcon/archive/$pkgver.tar.gz
+ no-werror.patch
+ "
build() {
cmake -B build . \
-DCMAKE_BUILD_TYPE=None \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DINSTALL_BASH_COMPLETION=ON
make -C build
}
@@ -35,4 +38,5 @@ bashcomp() {
amove usr/share/bash-completion
}
-sha512sums="99554288ed6a7061e68d28b60c77664ef21591aa9948a09c25a0b256b13eb06197b97ee44feb9f79bdef68ca61516b0235126948cbd13dff550f843509b93d9e rcon-0.4.tar.gz"
+sha512sums="bee716cdec855c8505a701d4bed000cba981684477c9a4d73023cf13a32287dcb9a6643a0bd22823a82e7be9afcdf78c69f8b432507b2ef6408a58837805f812 rcon-0.5.tar.gz
+a421b0cba054df504de63814ed711004e5806d7670b34179d9bd5751bb47e1e1dc3f47162d26e6276d0972c493de0bd48565f2f46d8d9b62e8c8bfaac6bf6054 no-werror.patch"
diff --git a/community/rcon/no-werror.patch b/community/rcon/no-werror.patch
new file mode 100644
index 0000000000..43e563e12a
--- /dev/null
+++ b/community/rcon/no-werror.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c935905..82711b4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,8 +28,6 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include"
+
+ LINK_DIRECTORIES(${GLIB2_LIBRARY_DIRS})
+
+-ADD_DEFINITIONS("-Wall -Werror")
+-
+ CHECK_FUNCTION_EXISTS(open_memstream HAVE_OPEN_MEMSTREAM)
+ CHECK_FUNCTION_EXISTS(fmemopen HAVE_FMEMOPEN)
+ CHECK_FUNCTION_EXISTS(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM)