aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/judy/APKBUILD
blob: d6396c9e5538f16300811d468dddf5ef49df4439 (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
44
45
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=judy
pkgver=1.0.5
pkgrel=0
pkgdesc="C library creating and accessing dynamic arrays"
url="http://judy.sourceforge.net/"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://kent.dl.sourceforge.net/project/judy/judy/Judy-$pkgver/Judy-$pkgver.tar.gz"

_builddir="$srcdir"/judy-$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"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="115a0d26302676e962ae2f70ec484a54  Judy-1.0.5.tar.gz"
sha256sums="d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb  Judy-1.0.5.tar.gz"
sha512sums="1a0d59b092c80d95270a3089cd25ee0ddad1d591101b03784e2e46dfc73bce445a7fb495b449043544a366c09b35b833556053bf3bf65dd00abbd786d26c6980  Judy-1.0.5.tar.gz"