diff options
Diffstat (limited to 'community/glpng/PKGBUILD')
-rw-r--r-- | community/glpng/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/glpng/PKGBUILD b/community/glpng/PKGBUILD new file mode 100644 index 000000000..83ae13afe --- /dev/null +++ b/community/glpng/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: $ +# Maintainer: Allan McRae <allan@archlinux.org> + +pkgname=glpng +pkgver=1.45 +pkgrel=3 +pkgdesc="Toolkit for loading PNG images as OpenGL textures" +arch=('i686' 'x86_64') +url="http://www.fifi.org/doc/libglpng-dev/glpng.html" +license=('custom') +depends=('libpng' 'zlib') +makedepends=('mesa') +source=(http://ftp.de.debian.org/debian/pool/main/libg/libglpng/libglpng_${pkgver}.orig.tar.gz + Makefile + libglpng-1.45-debian.patch + libpng14.patch + license) +md5sums=('9e0daad8e39fbf3179c73c0d3f74f104' + '0b24e9cb527d4ed1c43dd743d49d2b54' + '51ee01e61a70d91977b791a03e579b0f' + '50e00b9de0b376d7fb5fd812dc7beac9' + 'cd066652a6e5dbd7c1fc303b8e03417a') + +build() { + cd $srcdir/libglpng-1.45.orig + patch -Np1 -i $srcdir/libglpng-1.45-debian.patch + patch -Np1 -i $srcdir/libpng14.patch + + make -f $srcdir/Makefile libglpng.so.1.45 + make -f $srcdir/Makefile DESTDIR=$pkgdir/usr install + + install -Dm644 $srcdir/license \ + $pkgdir/usr/share/licenses/glpng/license +} |