summaryrefslogtreecommitdiff
path: root/user/hiredis/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-10-06 19:26:47 +0000
committerZach van Rijn <me@zv.io>2021-10-06 19:26:47 +0000
commit6fcbae3509457bab336ba5b5606a2bad5664fcec (patch)
tree9fb3e968f02bc98cdf8fe7839ccc2ed7b016b34e /user/hiredis/APKBUILD
parent7d36f2cfd6cb77d3e68194b6f523e06dd9bebe41 (diff)
parent25d58ab44b91071965480d1a3dbd1acba741e061 (diff)
downloadpackages-6fcbae3509457bab336ba5b5606a2bad5664fcec.tar.gz
packages-6fcbae3509457bab336ba5b5606a2bad5664fcec.tar.bz2
packages-6fcbae3509457bab336ba5b5606a2bad5664fcec.tar.xz
packages-6fcbae3509457bab336ba5b5606a2bad5664fcec.zip
Merge branch 'bump.djt.20210930' into 'master'
Package Bumps for all packages maintained by djt See merge request adelie/packages!629
Diffstat (limited to 'user/hiredis/APKBUILD')
-rw-r--r--user/hiredis/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/hiredis/APKBUILD b/user/hiredis/APKBUILD
new file mode 100644
index 000000000..1ce1505c5
--- /dev/null
+++ b/user/hiredis/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=hiredis
+pkgver=1.0.0
+pkgrel=0
+pkgdesc="A minimalistic C client library for the Redis database"
+url="https://github.com/redis/hiredis"
+arch="all"
+license="BSD-3-Clause"
+options="!check" # tests require a real redis server running
+depends=""
+makedepends="openssl-dev"
+subpackages="$pkgname-dev"
+source="hiredis-$pkgver.tar.gz::https://github.com/redis/hiredis/archive/refs/tags/v$pkgver.tar.gz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="eb56201121eecdbfc8d42e8c2c141ae77bea248eeb36687ac6835c9b2404f5475beb351c4d8539d552db4d88e933bb2bd5b73f165e62b130bb11aeff39928e69 hiredis-1.0.0.tar.gz"