git » quazip.git » commit 33e8a9c

Provide pkgconfig file (FS#62321)

author Antonio Rojas
2019-08-29 18:47:28 UTC
committer Antonio Rojas
2019-08-29 18:47:28 UTC
parent 6f7d3b0618dc0141d392cd76503c49cb822cba94

Provide pkgconfig file (FS#62321)

PKGBUILD +8 -1

diff --git a/PKGBUILD b/PKGBUILD
index 9fcb23f..7b0bcc7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 
 pkgname=quazip
 pkgver=0.8.1
-pkgrel=1
+pkgrel=2
 pkgdesc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
 url="https://stachenov.github.io/quazip/"
 license=(LGPL)
@@ -29,4 +29,11 @@ build() {
 package() {
   cd build
   make DESTDIR="$pkgdir" install
+  
+# generate pkgconfig 
+  cd ../$pkgname-$pkgver/quazip
+  qmake quazip.pro
+  make pkgconfig/quazip.pc
+  install -Dm 644 pkgconfig/quazip.pc -t "$pkgdir"/usr/lib/pkgconfig/
+  sed -e 's|-lquazip|-lquazip5|' -i "$pkgdir"/usr/lib/pkgconfig/quazip.pc
 }