blob: 9e48c2e3ca3e76714c2f0b2c84ba44c54e96fa6c (
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
48
49
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=cmph
pkgver=2.0
pkgrel=0
pkgdesc="A minimal hash C library - utility application"
url="http://cmph.sourceforge.net/"
arch="all"
license="LGPL2+ MPL1.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 \
--disable-static \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
make tests || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
lib() {
pkgdesc="A minimal perfect hash C library"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libcmph*.so.* "$subpkgdir"/usr/lib/
}
md5sums="020946deef7418d9daf4195556ecac12 cmph-2.0.tar.gz"
sha256sums="ad6c9a75ff3da1fb1222cac0c1d9877f4f2366c5c61c92338c942314230cba76 cmph-2.0.tar.gz"
sha512sums="7f37a8dcfce047ada9968681e07f66f014f8090aa5ce99358944a60715c7ef2bc62abf4b5c146fe99a0c812f2286ff0c009683b702a4e20c66617d955cf80caa cmph-2.0.tar.gz"
|