summaryrefslogtreecommitdiffstats
path: root/main/hiredis/APKBUILD
blob: de94ae65db218fa49b579381cba8595c21bb726a (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=hiredis
pkgver=0.11.0
pkgrel=0
pkgdesc="Minimalistic C client library for Redis"
url="https://github.com/redis/hiredis"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"

	make DEBUG=
}

package() {
	cd "$_builddir"

	make PREFIX="$pkgdir"/usr install
}

md5sums="e2ac29509823ccc96990b6fe765b5d46  hiredis-0.11.0.tar.gz"
sha256sums="ff7b2849e55bf3589eecced7125934feb9645c36a4d490d001dc08c93553eafd  hiredis-0.11.0.tar.gz"
sha512sums="a506c3e09267bd431dea87fdb7f9a44fb1d4795cbecb31323fe2fb9d66c10351fbf6d931fdaf2731fc2d0a985234e5d6ba0c9e694374d2f414294d27b6f060b8  hiredis-0.11.0.tar.gz"