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

Filipe Laíns ffy00 at archlinux.org
Wed Jul 8 23:32:30 UTC 2020


    Date: Wednesday, July 8, 2020 @ 23:32:30
  Author: ffy00
Revision: 661782

upgpkg: fontobene-qt5 0.1.0-2 (add pkg-config file)

Added:
  fontobene-qt5/trunk/fontobene-qt5.pc
Modified:
  fontobene-qt5/trunk/PKGBUILD

------------------+
 PKGBUILD         |   14 +++++++++++---
 fontobene-qt5.pc |    9 +++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-08 22:46:52 UTC (rev 661781)
+++ PKGBUILD	2020-07-08 23:32:30 UTC (rev 661782)
@@ -2,7 +2,7 @@
 
 pkgname=fontobene-qt5
 pkgver=0.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A header-only library to parse FontoBene stroke fonts with C++/Qt5'
 arch=('x86_64')
 url='https://github.com/fontobene/fontobene-qt5'
@@ -9,9 +9,15 @@
 license=('MIT' 'Apache')
 depends=('qt5-base')
 makedepends=('qt5-tools')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('SKIP')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+        "$pkgname.pc")
+sha512sums=('33f1d2a4245f54749d357f07ef8bc5ec6cbc1b66a2190dcf958b6e8175b69c415811835738e330f6801db852086792fce4378f256ad2154257ce37bed8bf108b'
+            'c107b1060e6ac75ce96cff23b40018f65f54f7f30025586eed7e3a9f067c241c43d8abb603186ec96103af63c36aac0e8330f8fe65aeb4ace679209412c08244')
 
+prepare() {
+  sed -i "s|%PKGVER%|$pkgver|g" $pkgname.pc
+}
+
 build() {
   mkdir $pkgname-$pkgver/build
   cd $pkgname-$pkgver/build
@@ -35,6 +41,8 @@
 
   make INSTALL_ROOT="$pkgdir" install
 
+  install -Dm 644 "$srcdir"/$pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
+
   install -Dm 644 ../LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
   install -Dm 644 ../LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE
 }

Added: fontobene-qt5.pc
===================================================================
--- fontobene-qt5.pc	                        (rev 0)
+++ fontobene-qt5.pc	2020-07-08 23:32:30 UTC (rev 661782)
@@ -0,0 +1,9 @@
+prefix=/usr
+includedir=${prefix}/include
+
+Name: fontobene-qt5
+Description: FontoBene parser for Qt5 (header-only)
+Version: %PKGVER%
+Libs:
+Cflags: -I${includedir}/fontobene-qt5
+Requires: Qt5Core



More information about the arch-commits mailing list