aboutsummaryrefslogtreecommitdiffstats
path: root/main/hiredis
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-09-26 19:13:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-26 19:14:22 +0000
commitc124a200753098a4b17500af5c0fcb80b0bcc169 (patch)
tree069828d3abe80f8a2d5c545bd0b2e3ddf6f55908 /main/hiredis
parent376070b28cbd7bfd311045eee5b5f77c4e934285 (diff)
downloadaports-c124a200753098a4b17500af5c0fcb80b0bcc169.tar.bz2
aports-c124a200753098a4b17500af5c0fcb80b0bcc169.tar.xz
main/hiredis: modernize, fix .pc properly
Diffstat (limited to 'main/hiredis')
-rw-r--r--main/hiredis/APKBUILD29
1 files changed, 7 insertions, 22 deletions
diff --git a/main/hiredis/APKBUILD b/main/hiredis/APKBUILD
index d0efb1928d..477febde5d 100644
--- a/main/hiredis/APKBUILD
+++ b/main/hiredis/APKBUILD
@@ -1,4 +1,4 @@
-# Maintainer:
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hiredis
pkgver=0.13.3
pkgrel=2
@@ -6,38 +6,23 @@ pkgdesc="Minimalistic C client library for Redis"
url="https://github.com/redis/hiredis"
arch="all"
license="BSD"
-depends=""
-depends_dev=""
-makedepends="$depends_dev"
-install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-options="!check"
+options="!check" # check requires running redis server
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
-
- make DEBUG=
+ cd "$builddir"
+ make PREFIX=/usr DEBUG="$CFLAGS" LDFLAGS="$LDFLAGS"
}
package() {
- cd "$_builddir"
-
+ cd "$builddir"
make PREFIX="$pkgdir"/usr install
- sed -i -e 's:^libdir.*$:libdir=${exec_prefix}/lib:' -e 's:^includedir.*:includedir=${prefix}/include/hiredis:' $pkgdir/usr/lib/pkgconfig/hiredis.pc
}
+
md5sums="43dca1445ec6d3b702821dba36000279 hiredis-0.13.3.tar.gz"
sha256sums="717e6fc8dc2819bef522deaca516de9e51b9dfa68fe393b7db5c3b6079196f78 hiredis-0.13.3.tar.gz"
sha512sums="0d8b71d5ee4105e8aaeeee308795afc2c1f60a04b0bfe8ae873d800a0c157882ec307efa04a8d0e63b538fd3fc3f88eedf4d46cb87c8937e2403927aeb7e434c hiredis-0.13.3.tar.gz"