summaryrefslogtreecommitdiff
path: root/community/hiredis/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-07-18 04:05:10 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-07-18 04:05:10 +0000
commit9959727f4ef9acd6805bb372e98323a01468246e (patch)
tree52c209bd97c5b9ab6217c75dbf67bdc425775341 /community/hiredis/PKGBUILD
parent0a765aad3e78dae0cc72b1a255b39a071f018963 (diff)
Fri Jul 18 04:02:21 UTC 2014
Diffstat (limited to 'community/hiredis/PKGBUILD')
-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
+}