aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Boehr <john@johnboehr.is>2020-06-16 03:14:42 -0700
committerLeo <thinkabit.ukim@gmail.com>2020-06-17 18:21:02 -0300
commitfeb3450d53e97b4926c4eef419c2a7fc33213512 (patch)
tree40c3dc973558d30a91d87d4a99611daaee93dcca
parent901fd58c9a4f98ca48e33ec5fa94621365a34c6d (diff)
downloadaports-feb3450d53e97b4926c4eef419c2a7fc33213512.tar.gz
aports-feb3450d53e97b4926c4eef419c2a7fc33213512.tar.bz2
aports-feb3450d53e97b4926c4eef419c2a7fc33213512.tar.xz
main/lmdb: fix invalid pkgconfig
Co-authored-by: Leo <thinkabit.ukim@gmail.com>
-rw-r--r--main/lmdb/APKBUILD26
-rw-r--r--main/lmdb/lmdb.pc11
2 files changed, 21 insertions, 16 deletions
diff --git a/main/lmdb/APKBUILD b/main/lmdb/APKBUILD
index 3404730a59..63c4cc788a 100644
--- a/main/lmdb/APKBUILD
+++ b/main/lmdb/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lmdb
pkgver=0.9.25
-pkgrel=0
+pkgrel=1
pkgdesc="Lightning Memory-Mapped Database"
url="https://symas.com/mdb"
arch="all"
@@ -11,9 +11,15 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://git.openldap.org/openldap/openldap/-/archive/LMDB_$pkgver/openldap-LMDB_$pkgver.tar.gz
lmdb-make.patch
cacheflush.patch
+ lmdb.pc
"
builddir="$srcdir/openldap-LMDB_$pkgver/libraries/liblmdb"
+prepare() {
+ default_prepare
+ sed -i "s|@@VERSION@@|$pkgver|" -i "$srcdir"/*.pc
+}
+
build() {
make CFLAGS+="-fPIC"
}
@@ -25,20 +31,7 @@ check() {
package() {
make DESTDIR="$pkgdir" prefix=/usr install
- mkdir -p "$pkgdir"/usr/lib/pkgconfig
- cat >"$pkgdir"/usr/lib/pkgconfig/lmdb.pc <<-EOF
- prefix=/usr
- exec_prefix=\$prefix
- libdir=\$exec_prefix/lib
- includedir=\$prefix/include
-
- Name: liblmdb
- Description: Lightning Memory-mapped key-value database
- URL: http://symas.com/mdb/
- Version: $pkgver
- Libs: -L\$libdir -llmdb
- Cflags: -I\$includedir
- EOF
+ install -Dm0644 "$srcdir"/*.pc -t "$pkgdir"/usr/lib/pkgconfig
}
tools() {
@@ -48,4 +41,5 @@ tools() {
sha512sums="557b78590f4ae4ee8ba1989bd84e11ffe7d179eafd1767c8e0ee7ce644a91514399b2f88eefe8eecbe3c53686d1e5f1acd28f3fd9b8854d26194ed650213d33c openldap-LMDB_0.9.25.tar.gz
1ae28e850a32694f81cb7bf4abaab9cd96ef6c963de91f96810de3afee4da41102e310a6fb0ed889e9e9e04e00342f25272c04a8b483615dccfc039e34538594 lmdb-make.patch
-f30b5f60ad3788abe3caa91a787c00190d6cceef5d20339624ce3d128f59de1a65d6913ab28f938c52237c40cbaef8a2bff2be7158da32f8c4562aa240fd11a2 cacheflush.patch"
+f30b5f60ad3788abe3caa91a787c00190d6cceef5d20339624ce3d128f59de1a65d6913ab28f938c52237c40cbaef8a2bff2be7158da32f8c4562aa240fd11a2 cacheflush.patch
+0cc194beedd8c1adc7cc1390eb131c800142c14120e47fc744d84f8225efecfa8d4854f4ed26021166b4b7cb021ffc4f068e0009958b1ce6247941fce9658233 lmdb.pc"
diff --git a/main/lmdb/lmdb.pc b/main/lmdb/lmdb.pc
new file mode 100644
index 0000000000..3362f2c865
--- /dev/null
+++ b/main/lmdb/lmdb.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: liblmdb
+Description: Lightning Memory-mapped key-value database
+URL: http://symas.com/mdb/
+Version: @@VERSION@@
+Libs: -L${libdir} -llmdb
+Cflags: -I${includedir}