diff options
author | Zach van Rijn <me@zv.io> | 2021-10-16 01:12:16 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-10-16 01:12:16 +0000 |
commit | 6ca2ba5c92a7b0679a552725678a40ed5eb4ded5 (patch) | |
tree | ddc300a108dc4d10ed5ed0188175f54452e8bb0e /user/hiredis/APKBUILD | |
parent | aa90e62ce757fa863685f44ce23f129f56b3225f (diff) | |
parent | c0f3f757abe6ea39579119b99e9996c4e2bf0e11 (diff) | |
download | packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.gz packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.bz2 packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.tar.xz packages-6ca2ba5c92a7b0679a552725678a40ed5eb4ded5.zip |
Merge branch 'master' into 'awilfox/bump/2021-09-system-abipreserve'
# Conflicts:
# system/curl/APKBUILD
Diffstat (limited to 'user/hiredis/APKBUILD')
-rw-r--r-- | user/hiredis/APKBUILD | 40 |
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" |