aboutsummaryrefslogtreecommitdiffstats
path: root/main/cmph/APKBUILD
blob: 5d796470f632f1ddd5164180d272c7be294b2bf0 (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: 
# Maintainer: 
pkgname=cmph
pkgver=0.9
pkgrel=2
pkgdesc="minimal perfect hash C library - utility application"
url="http://cmph.sourceforge.net/"
arch="all"
license="LGPL MPL-1.1"
depends=
makedepends=
install=
subpackages="$pkgname-dev $pkgname-doc libcmph:lib"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

lib() {
	pkgdesc="minimal perfect hash C library - utility application"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libcmph*.so.* "$subpkgdir"/usr/lib/
}

md5sums="14c17e3058174e9333936caa8e18ed28  cmph-0.9.tar.gz"