summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Grande2021-01-05 01:32:21 -0500
committerVincent Grande2021-01-05 01:32:21 -0500
commit13e73856fb4c2881a0d46a7fa0c3f0cebcf45028 (patch)
treee403b5bb9328b10821c661013c96e55c617b3e46
downloadaur-lib32-libpng-minimal-git.tar.gz
initial upload
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD59
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f30a708ec08
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = lib32-libpng-minimal-git
+ pkgdesc = A collection of routines used to create PNG format graphics files (32-bit)
+ pkgver = 1.6.37
+ pkgrel = 1
+ url = http://www.libpng.org/pub/png/libpng.html
+ arch = x86_64
+ license = custom
+ makedepends = gcc-multilib
+ depends = lib32-zlib
+ depends = libpng
+ provides = lib32-libpng
+ conflicts = lib32-libpng
+ source = git+https://git.code.sf.net/p/libpng/code
+ sha256sums = SKIP
+
+pkgname = lib32-libpng-minimal-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..61243f9a96e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com
+# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: dorphell <dorphell@archlinux.org>
+# Contributor: Travis Willard <travis@archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
+
+_pkgbasename=libpng
+pkgname=lib32-$_pkgbasename-minimal-git
+pkgver=1.6.37
+pkgrel=1
+pkgdesc="A collection of routines used to create PNG format graphics files (32-bit)"
+arch=('x86_64')
+url="http://www.libpng.org/pub/png/libpng.html"
+license=('custom')
+depends=('lib32-zlib' $_pkgbasename)
+makedepends=(gcc-multilib)
+provides=(lib32-libpng)
+conflicts=(lib32-libpng)
+source=("git+https://git.code.sf.net/p/libpng/code")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "code"
+
+ git describe --long --tags | sed 's/^libpng-//;s/master-//;s/signed-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd code
+
+ autoreconf -fi
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32 \
+ --program-suffix=-32 \
+ --enable-hardware-optimizations \
+ --enable-intel-sse \
+ --disable-static
+ make
+}
+
+package() {
+ cd code
+
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share}
+
+ rm "$pkgdir/usr/bin/libpng-config"
+ ln -s "libpng-config-32" "$pkgdir/usr/bin/libpng-config-32"
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}