blob: f1bc8b5ce36b42b68de18d5d9b4922a712bab9cc (
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
|
pkgname=liblmdb-git
_gitname=lmdb
_source_path=$_gitname/libraries/liblmdb
pkgver=1085
pkgrel=1
pkgdesc="Symas Lightning Memory-Mapped Database"
arch=(any)
license=(custom)
makedepends=(git)
provides=(liblmdb lmdb)
depends=()
conflicts=(liblmdb mdb-git lmdb)
source=("git://github.com/LMDB/lmdb.git")
url=http://symas.com/mdb/
md5sums=(SKIP)
pkgver() {
cd $_source_path
git rev-list --count HEAD
}
build() {
cd $_source_path
make
}
package() {
cd $_source_path
## custom install because make with DESTDIR seems not to work
mkdir -p ${pkgdir}/usr/{bin,lib,include}
cp mdb_stat mdb_copy mdb_dump mdb_load ${pkgdir}/usr/bin
cp liblmdb.a liblmdb.so ${pkgdir}/usr/lib
cp lmdb.h ${pkgdir}/usr/include
}
|