blob: 02cf19da833413a72f5f0aab6bdb7c3db530928f (
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
|
# Maintainer (Arch): Mark Foxwell <fastfret79@archlinux.org.uk>
# Contributor (Arch): Nicolas Martyanoff <khaelin@gmail.com>
pkgname=tokyocabinet
pkgver=1.4.48
pkgrel=2
pkgdesc="a modern implementation of DBM"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h')
url="http://fallabs.com/tokyocabinet/"
license=('LGPL')
makedepends=('gcc>=3.1' 'make' 'pkgconfig')
depends=('zlib' 'bzip2')
source=("http://fallabs.com/tokyocabinet/${pkgname}-${pkgver}.tar.gz")
md5sums=('fd03df6965f8f56dd5b8518ca43b4f5e')
build() {
cd "$srcdir/$pkgname-$pkgver"
[ "$CARCH" != "mips64el" ] && extra=--enable-fastest
[ "$CARCH" != "armv6h" ] && sed -i "s/-minline-all-stringops//g" configure
[ "$CARCH" != "armv7h" ] && sed -i "s/-minline-all-stringops//g" configure
./configure --prefix=/usr --enable-off64 $extra
make
}
# uncomment check routine if needed (can take ~5mins to run check)
check() {
cd "$srcdir/$pkgname-$pkgver"
make -k check
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|