diff options
author | Chocobo1 | 2020-02-02 18:57:31 +0800 |
---|---|---|
committer | Chocobo1 | 2020-02-02 18:57:31 +0800 |
commit | 51398105011f0ad976ca54b7dc1bf189038fccc5 (patch) | |
tree | 8d750b00260d47c8562085a41d1a347e14e057a1 /PKGBUILD | |
download | aur-51398105011f0ad976ca54b7dc1bf189038fccc5.tar.gz |
newpkg: hiredis-git 0.14.0.r151.g3421ac3-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b9a275685443 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=hiredis-git +pkgver=0.14.0.r151.g3421ac3 +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" + + make PREFIX="/usr" +} + +check() { + cd "hiredis" + + make check +} + +package() { + cd "hiredis" + + make DESTDIR="$pkgdir" PREFIX="/usr" install + install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/hiredis" +} |