summaryrefslogtreecommitdiff
path: root/community/hiredis
diff options
context:
space:
mode:
Diffstat (limited to 'community/hiredis')
-rw-r--r--community/hiredis/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/hiredis/PKGBUILD b/community/hiredis/PKGBUILD
new file mode 100644
index 000000000..7a6550fd3
--- /dev/null
+++ b/community/hiredis/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 115821 2014-07-17 09:57:15Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# Contributor: Vladimir Tsanev <tsachev@gmail.com>
+
+pkgname=hiredis
+pkgver=0.11.0
+pkgrel=4
+pkgdesc='Minimalistic C client library for Redis'
+arch=('x86_64' 'i686')
+url="https://github.com/redis/hiredis/"
+license=('BSD')
+depends=('glibc')
+checkdepends=('redis')
+source=(hiredis-$pkgver.tar.gz::https://github.com/redis/$pkgname/archive/v$pkgver.tar.gz)
+sha256sums=('ff7b2849e55bf3589eecced7125934feb9645c36a4d490d001dc08c93553eafd')
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make
+}
+
+check() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -r 's|echo \\|echo -e \\|' -i Makefile
+ make check
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make PREFIX="$pkgdir"/usr install
+
+ install -Dm 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}