summaryrefslogtreecommitdiff
path: root/hiredis-cmake-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis-cmake-git/PKGBUILD')
-rw-r--r--hiredis-cmake-git/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/hiredis-cmake-git/PKGBUILD b/hiredis-cmake-git/PKGBUILD
new file mode 100644
index 0000000..c794d06
--- /dev/null
+++ b/hiredis-cmake-git/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Aki <please at ignore pl>
+
+pkgname=hiredis-cmake-git
+pkgver=1.1.0.r4.g6f5bae8
+pkgrel=1
+pkgdesc="Minimalistic C client library for Redis"
+arch=('i686' 'x86_64')
+url="https://github.com/redis/hiredis/"
+license=('BSD')
+depends=('glibc')
+makedepends=('git')
+checkdepends=('redis')
+provides=('hiredis')
+conflicts=('hiredis')
+options=('staticlibs')
+source=("git+https://github.com/redis/hiredis.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd hiredis
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd hiredis
+ cmake -B build --install-prefix="/usr"
+ cd build
+ make -j
+}
+
+check() {
+ cd hiredis/build
+ make test
+}
+
+package() {
+ cd hiredis/build
+ make DESTDIR="$pkgdir" install
+ cd ..
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/hiredis"
+}