summaryrefslogtreecommitdiff
path: root/community/glpng/PKGBUILD
blob: 83ae13afe491f5d8c992996c67df91e82aa1e8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
}