archrelease: copy trunk to extra-x86_64
[arch-packages.git] / lmdb / trunk / PKGBUILD
blobdbe8e2c513fbb73eb40448068972482464ce52a5
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Matt Monaco <cx monaco matt>
4 pkgname=lmdb
5 pkgver=0.9.29
6 pkgrel=1
7 pkgdesc="Symas Lightning Memory-Mapped Database"
8 arch=('x86_64')
9 url="https://symas.com/mdb"
10 license=('custom:OpenLDAP')
11 depends=('glibc')
12 options=('!emptydirs')
13 source=("https://git.openldap.org/openldap/openldap/-/archive/LMDB_$pkgver/openldap-LMDB_$pkgver.tar.gz" lmdb.pc)
14 sha512sums=('b41ba5b139375d23617a79f4d322399df55745c5a4a63159ddbe0f1ded4707f0eb7f71acf3d1a4928f8fcab30a7b5db17e3e165441a61ec1dbd29f8d9efa65d1'
15             '0349d4b08a1f93fe338d8f8e3e5a83e24211a46f999fe529bc1ac49c8c4975559d95a548c203d9427e3f82d62e934ba3cd1be6f734f9b9405b2a26477be4ed33')
17 prepare() {
18   sed -e "s|@PKGVER@|$pkgver|" -i lmdb.pc
21 build() {
22   cd "$srcdir"/openldap-LMDB_$pkgver/libraries/liblmdb
23   make prefix=/usr
26 check() {
27   cd "$srcdir"/openldap-LMDB_$pkgver/libraries/liblmdb
28   make test
31 package() {
32   cd "$srcdir"/openldap-LMDB_$pkgver/libraries/liblmdb
33   install -dm755 "$pkgdir"/usr/{bin,lib,include,man/man1,share}
34   make DESTDIR="$pkgdir" prefix=/usr install
36   mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man
38   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
39   install -Dm644 "$srcdir"/lmdb.pc "$pkgdir"/usr/lib/pkgconfig/lmdb.pc