[arch-commits] Commit in lmdb/trunk (PKGBUILD lmdb.pc)

Antonio Rojas arojas at archlinux.org
Sat Oct 15 11:05:59 UTC 2016


    Date: Saturday, October 15, 2016 @ 11:05:59
  Author: arojas
Revision: 278832

Add pkgconfig file, needed by appstream-generator

Added:
  lmdb/trunk/lmdb.pc
Modified:
  lmdb/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 lmdb.pc  |   10 ++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-15 10:59:10 UTC (rev 278831)
+++ PKGBUILD	2016-10-15 11:05:59 UTC (rev 278832)
@@ -4,7 +4,7 @@
 
 pkgname=lmdb
 pkgver=0.9.18
-pkgrel=1
+pkgrel=2
 pkgdesc="Symas Lightning Memory-Mapped Database"
 arch=('i686' 'x86_64')
 url="http://symas.com/mdb"
@@ -12,9 +12,14 @@
 depends=('glibc')
 makedepends=('git')
 options=('!emptydirs')
-source=("git+https://github.com/LMDB/lmdb.git#tag=LMDB_$pkgver")
-sha256sums=('SKIP')
+source=("git+https://github.com/LMDB/lmdb.git#tag=LMDB_$pkgver" lmdb.pc)
+sha256sums=('SKIP'
+            '6eed8c6fde6f5e2523099462779656f7cb92b3fc7384023d96508a6e73a730da')
 
+prepare() {
+  sed -e "s|@PKGVER@|$pkgver|" -i lmdb.pc
+}
+
 build() {
   cd "$srcdir/lmdb/libraries/liblmdb"
   make prefix=/usr
@@ -33,4 +38,5 @@
   mv "$pkgdir/usr/man" "$pkgdir/usr/share/man"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 "$srcdir"/lmdb.pc "$pkgdir"/usr/lib/pkgconfig/lmdb.pc
 }

Added: lmdb.pc
===================================================================
--- lmdb.pc	                        (rev 0)
+++ lmdb.pc	2016-10-15 11:05:59 UTC (rev 278832)
@@ -0,0 +1,10 @@
+prefix=/usr
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: liblmdb
+Description: Lightning Memory-Mapped Database
+URL: https://symas.com/products/lightning-memory-mapped-database/
+Version: @PKGVER@
+Libs: -L${libdir} -llmdb
+Cflags: -I${includedir}



More information about the arch-commits mailing list