lmdb/PKGBUILD

44 lines
1.2 KiB
Bash
Raw Normal View History

2024-05-05 01:19:45 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=lmdb
2024-11-04 18:48:15 +08:00
pkgver=0.9.33
2024-05-05 01:19:45 +08:00
pkgrel=1
pkgdesc="Symas Lightning Memory-Mapped Database"
arch=('x86_64')
url="https://symas.com/lmdb"
license=('custom:OpenLDAP')
depends=('glibc')
makedepends=('git')
options=('!emptydirs')
2024-11-04 18:48:15 +08:00
source=(git+https://git.openldap.org/openldap/openldap.git#tag=LMDB_${pkgver}
lmdb.pc)
2024-05-05 01:19:45 +08:00
sha256sums=(SKIP
2024-11-04 18:48:15 +08:00
84773d232ee0a11a307ed4374fc4cbf8d6ea1b0feeb3ee9499fe821e4b98a28f)
2024-05-05 01:19:45 +08:00
prepare() {
2024-11-04 18:48:15 +08:00
sed -e "s|@PKGVER@|$pkgver|" -i lmdb.pc
2024-05-05 01:19:45 +08:00
}
build() {
2024-11-04 18:48:15 +08:00
cd openldap/libraries/liblmdb
2024-05-05 01:19:45 +08:00
2024-11-04 18:48:15 +08:00
make CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" prefix=/usr libdir=/usr/lib64
2024-05-05 01:19:45 +08:00
}
package() {
2024-11-04 18:48:15 +08:00
cd openldap/libraries/liblmdb
2024-05-05 01:19:45 +08:00
2024-11-04 18:48:15 +08:00
install -dm755 ${pkgdir}/usr/{bin,lib64,include,man/man1,share}
2024-05-05 01:19:45 +08:00
2024-11-04 18:48:15 +08:00
make DESTDIR=${pkgdir} prefix=/usr libdir=/usr/lib64 install
2024-05-05 01:19:45 +08:00
2024-11-04 18:48:15 +08:00
mv ${pkgdir}/usr/man ${pkgdir}/usr/share/man
2024-05-05 01:19:45 +08:00
2024-11-04 18:48:15 +08:00
install -Dm644 ${srcdir}/lmdb.pc -t ${pkgdir}/usr/lib64/pkgconfig/
2024-05-05 01:19:45 +08:00
}