summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bffa0b0e31a867782ef6072870b028e8d28329d9 (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
# Maintainer: Vincent Bernardoff <vb@luminar.eu.org>
# Contributor: Mark Foxwell <fastfret79@archlinux.org.uk>
# Contributor: Nicolas Martyanoff <khaelin@gmail.com>
# Contributor: Rick Chen <stuffcorpse@archlinux.us>

pkgname=tokyocabinet-git
pkgver=1.4.48.r15.gd303368
pkgrel=1
pkgdesc="a modern implementation of DBM"
arch=('i686' 'x86_64' 'armv7h')
url="http://fallabs.com/tokyocabinet/"
license=('LGPL')
makedepends=('gcc>=3.1' 'make' 'pkgconfig' 'git')
depends=('zlib' 'bzip2')
source=("$pkgname"::'git+git://github.com/Incubaid/tokyocabinet')
conflicts=('tokyocabinet')
provides=('tokyocabinet=1.4.48')
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  ./configure --prefix=/usr --enable-off64
  make
}

# uncomment check routine if needed (can take ~5mins to run check)
# check() {
#  cd "$srcdir/$pkgname"
#  make -k check
# }

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: