summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorheinrich59912018-07-18 11:17:52 +0200
committerheinrich59912018-07-18 11:17:52 +0200
commita8e9bfaae1554466af4da951a4dc2e9a88bdca12 (patch)
tree8e806f81ef02357130c970eaa37e3bfb08a0fa5a
downloadaur-a8e9bfaae1554466af4da951a4dc2e9a88bdca12.tar.gz
pnglite 0.1.17, initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD30
-rw-r--r--system-zlib.patch13
4 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9e6769a14a6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = pnglite
+ pkgdesc = Lightweight PNG C library
+ pkgver = 0.1.17
+ pkgrel = 1
+ 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 = system-zlib.patch
+ sha256sums = 6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962
+ sha256sums = 70aea0718f90a35df50ff33dd85032be72b3fddfe539382f93d4796df1b7c5b9
+
+pkgname = pnglite
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3524d5da98c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/src
+/pkg
+*.pkg.tar.xz
+*.zip
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1401ecdc2cd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: heinrich5991 <heinrich5991@gmail.com>
+# system-zlib.patch taken from the Debian package
+pkgname=pnglite
+pkgver=0.1.17
+pkgrel=1
+pkgdesc="Lightweight PNG C library"
+arch=('x86' 'x86_64')
+url="https://sourceforge.net/projects/pnglite/"
+license=('BSD')
+depends=()
+options=()
+source=(
+ "https://downloads.sourceforge.net/project/pnglite/pnglite/0.1.17/pnglite-0.1.17.zip"
+ "system-zlib.patch"
+)
+sha256sums=('6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962'
+ '70aea0718f90a35df50ff33dd85032be72b3fddfe539382f93d4796df1b7c5b9')
+
+prepare() {
+ patch -p1 < system-zlib.patch
+}
+
+build() {
+ gcc -shared -fPIC -Wall -o libpnglite.so -lz pnglite.c
+}
+
+package() {
+ install -Dm644 pnglite.h "${pkgdir}"/usr/include/pnglite.h
+ install -Dm755 libpnglite.so "${pkgdir}"/usr/lib/libpnglite.so
+}
diff --git a/system-zlib.patch b/system-zlib.patch
new file mode 100644
index 00000000000..e9a8d5db5a0
--- /dev/null
+++ b/system-zlib.patch
@@ -0,0 +1,13 @@
+Index: pnglite-0.1.17/pnglite.c
+===================================================================
+--- pnglite-0.1.17.orig/pnglite.c 2008-04-18 17:14:43.000000000 +1000
++++ pnglite-0.1.17/pnglite.c 2008-04-18 17:14:53.000000000 +1000
+@@ -5,7 +5,7 @@
+ #define USE_ZLIB 1
+
+ #if USE_ZLIB
+-#include "../zlib/zlib.h"
++#include <zlib.h>
+ #else
+ #include "zlite.h"
+ #endif