diff options
author | Vincent Grande | 2021-01-22 23:14:12 -0500 |
---|---|---|
committer | Vincent Grande | 2021-01-22 23:14:12 -0500 |
commit | 229d45cf9563cfbe9035469be38978fb6e628c7c (patch) | |
tree | 2ce22a29f09ee6bfef342adc77ff5e53c6b56b44 | |
download | aur-229d45cf9563cfbe9035469be38978fb6e628c7c.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 65 |
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..79007a7b699e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = lib32-libpng12-git + pkgdesc = A collection of routines used to create PNG format graphics files + pkgver = 1.2.59 + pkgrel = 1 + url = http://www.libpng.org/pub/png/libpng.html + arch = x86_64 + license = custom + makedepends = gcc-multilib + depends = lib32-glibc + depends = lib32-zlib + provides = lib32-libpng12 + conflicts = lib32-libpng12 + source = git://git.code.sf.net/p/libpng/code#branch=libpng12 + source = https://sourceforge.net/projects/libpng-apng/files/libpng12/1.2.59/libpng-1.2.59-apng.patch.gz + sha256sums = SKIP + sha256sums = SKIP + +pkgname = lib32-libpng12-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e519fba324b4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Arthur Zamarin <arthurzam@gmail.com> +# Contributor: trya <tryagainprod@gmail.com> +# 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> + +pkgname=lib32-libpng12-git +pkgver=1.2.59 +pkgrel=1 +pkgdesc='A collection of routines used to create PNG format graphics files' +arch=('x86_64') +url='http://www.libpng.org/pub/png/libpng.html' +license=('custom') +depends=('lib32-glibc' 'lib32-zlib') +makedepends=('gcc-multilib') +provides=(lib32-libpng12) +conflicts=(lib32-libpng12) +source=(git://git.code.sf.net/p/libpng/code#branch=libpng12 + "https://sourceforge.net/projects/libpng-apng/files/libpng12/${pkgver}/libpng-${pkgver}-apng.patch.gz") +#validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson +sha256sums=('SKIP' + 'SKIP') + +pkgver() { + cd code + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd code + + patch -Np1 -i ../libpng-${pkgver}-apng.patch + + libtoolize --force --copy + aclocal + autoconf + automake --add-missing +} + +build() { + cd code + + export CC='gcc -m32' + export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + + ./autogen.sh + ./configure \ + --prefix='/usr' \ + --libdir='/usr/lib32' + make +} + +package() { + cd code + + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/{bin,include,lib32/{libpng.{a,so},pkgconfig},share} + + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/lib32-libpng12/ +} + +# vim: ts=2 sw=2 et: |