blob: 222a220e80225a4c01af35c7fa395042c00ea394 (
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
|
#!/bin/sh
NAME="lmdb"
DESC="Lightning Memory-Mapped Database"
MAKEDEPS=""
PKG_VER=0.9.29
SOURCE="https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_$PKG_VER.tar.gz"
ADDITIONAL="
cacheflush.patch
lmdb-make.patch
lmdb.pc
"
prepare() {
cd libraries/liblmdb
apply_patches
sed -i "s|@@VERSION@@|$PKG_VER|" -i "$BUILD_ROOT"/*.pc
}
build() {
make CFLAGS="$CFLAGS -fPIC"
}
check() {
LD_LIBRARY_PATH="$PWD" make test
}
package() {
make DESTDIR="$PKG_DEST" prefix=/usr install
cd $BUILD_ROOT
for f in *.pc; do
install -Dm0644 $f "$PKG_DEST"/usr/lib/pkgconfig/$f
done
}
|