summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorheinrich59912019-04-11 01:19:52 +0200
committerheinrich59912019-04-11 01:19:52 +0200
commit4b4a51e890f597ec17cafdb185ece5ceb31a6abd (patch)
treee5213de5374a5b60177e4c7488db9805053ab944
parenta8e9bfaae1554466af4da951a4dc2e9a88bdca12 (diff)
downloadaur-4b4a51e890f597ec17cafdb185ece5ceb31a6abd.tar.gz
Provide pkg-config file
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD5
-rw-r--r--pnglite.pc10
3 files changed, 19 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9e6769a14a6..1d8bcaa9501 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,18 @@
+# Generated by mksrcinfo v8
+# Wed Apr 10 23:19:23 UTC 2019
pkgbase = pnglite
pkgdesc = Lightweight PNG C library
pkgver = 0.1.17
- pkgrel = 1
+ pkgrel = 2
url = https://sourceforge.net/projects/pnglite/
arch = x86
arch = x86_64
license = BSD
source = https://downloads.sourceforge.net/project/pnglite/pnglite/0.1.17/pnglite-0.1.17.zip
+ source = pnglite.pc
source = system-zlib.patch
sha256sums = 6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962
+ sha256sums = cba333db12d4716bd4fc18af3318f1993f6e45ab03f78e9f742dcdf926a14521
sha256sums = 70aea0718f90a35df50ff33dd85032be72b3fddfe539382f93d4796df1b7c5b9
pkgname = pnglite
diff --git a/PKGBUILD b/PKGBUILD
index 1401ecdc2cd..a9ac5a48684 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# system-zlib.patch taken from the Debian package
pkgname=pnglite
pkgver=0.1.17
-pkgrel=1
+pkgrel=2
pkgdesc="Lightweight PNG C library"
arch=('x86' 'x86_64')
url="https://sourceforge.net/projects/pnglite/"
@@ -11,9 +11,11 @@ depends=()
options=()
source=(
"https://downloads.sourceforge.net/project/pnglite/pnglite/0.1.17/pnglite-0.1.17.zip"
+ "pnglite.pc"
"system-zlib.patch"
)
sha256sums=('6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962'
+ 'cba333db12d4716bd4fc18af3318f1993f6e45ab03f78e9f742dcdf926a14521'
'70aea0718f90a35df50ff33dd85032be72b3fddfe539382f93d4796df1b7c5b9')
prepare() {
@@ -27,4 +29,5 @@ build() {
package() {
install -Dm644 pnglite.h "${pkgdir}"/usr/include/pnglite.h
install -Dm755 libpnglite.so "${pkgdir}"/usr/lib/libpnglite.so
+ install -Dm644 pnglite.pc "${pkgdir}"/usr/lib/pkgconfig/pnglite.pc
}
diff --git a/pnglite.pc b/pnglite.pc
new file mode 100644
index 00000000000..881a4b10412
--- /dev/null
+++ b/pnglite.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: pnglite
+Description: Lightweight PNG C library
+Version: 0.1.17
+Cflags: -I${includedir}
+Libs: -L${libdir} -lpnglite