summaryrefslogtreecommitdiff
path: root/pcr/hiredis/PKGBUILD
blob: a6ad20868d9f4688213617c6bfe8e4ea71c13719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: orphan
# Contributor: Nicolás Reynolds <fauno@kiwwwi.com.ar>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Vladimir Tsanev <tsachev@gmail.com>
# Contributor (AUR): Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=hiredis
pkgver=0.11.0
pkgrel=3
pkgdesc='Minimalistic C client library for Redis'
arch=('x86_64' 'i686')
url="https://github.com/redis/hiredis/"
license=('BSD3')
depends=('glibc')
checkdepends=('redis')
changelog='ChangeLog'
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/redis/$pkgname/tar.gz/v$pkgver
        hiredis-fix-tests.patch)
md5sums=('e2ac29509823ccc96990b6fe765b5d46'
         'ddcc73042a8ec278aca6cc2b2d26bc03')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i ../hiredis-fix-tests.patch
}

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"
}