summaryrefslogtreecommitdiff
path: root/community/glpng/PKGBUILD
blob: 0c57c67aee447081a3ef9528689a474992a71766 (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
35
36
37
# $Id: PKGBUILD 55485 2011-09-13 02:26:22Z ebelanger $
# Maintainer: Allan McRae <allan@archlinux.org>

pkgname=glpng
pkgver=1.45
pkgrel=4
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' 'libgl')
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"
  cp "$srcdir/Makefile" .
  make libglpng.so.1.45
}

package() {
  cd "$srcdir/libglpng-1.45.orig"
  make DESTDIR="$pkgdir/usr" install
  install -Dm644 "$srcdir/license" \
    "$pkgdir/usr/share/licenses/glpng/license"
}