aboutsummaryrefslogtreecommitdiffstats
path: root/main/hiredis/APKBUILD
blob: 3338aed8c1d9a58145fd140cd64c6a7e1b27a780 (plain) (blame)
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.13.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="3ae916ada628e4498b4f7de2f492fc6b  hiredis-0.13.0.tar.gz"
sha256sums="416d6cded4795d2223d8703dd9687259cb8c68445b3f73652eb15887297b15bb  hiredis-0.13.0.tar.gz"
sha512sums="d2e8ff13e45bf78d8115d63f6dd3fc907000270309356412070c3ce2f0cfa6c3d9707c3ce5bd51b2056dedd0c511a6587f309f74c19bcbb879fc53928367914e  hiredis-0.13.0.tar.gz"