updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / libpng-old / PKGBUILD
blobd607c5f8add0ae3a80497d5744e6966843361947
1 # Maintainer: Erol Grahm <erol at grahm dot nu>
3 pkgname=libpng-old
4 pkgver=1.0.2
5 pkgrel=2
6 pkgdesc="A collection of routines used to create PNG format graphics files, builds libpng.3, libpngpf.3 and libpng.so.2 (libpng.so.2.1.0.2)"
7 arch=('i686' 'x86_64')
8 url="http://www.libpng.org/pub/png/libpng.html"
9 license=('Open Source')
10 depends=('zlib')
11 source=(http://downloads.sourceforge.net/sourceforge/libpng/libpng-$pkgver.tar.gz)
12 md5sums=('a8b093154f07f7b82e5c9bb77c11a0c4')
14 build() {
15   install -d $pkgdir/usr/lib
16   cd "$srcdir/libpng-$pkgver"
17   cp $srcdir/libpng-$pkgver/scripts/makefile.lnx $srcdir/libpng-$pkgver/makefile
18   make || return 1
19   cp -r $srcdir/libpng-$pkgver/* $pkgdir/usr/lib
20   chmod -R 644 $srcdir/libpng-$pkgver/{scripts/,makefile}
21   chmod -R 644 $pkgdir/usr/lib/{ANNOUNCE,ansi2knr.1,ansi2knr.c,CHANGES,example.c,INSTALL,KNOWNBUG,libpng.a,libpng.so,libpng.txt,makefile,png.5,png.c,pngconf.h,pngerror.c,pngerror.o,pngerror.pic.o,pngget.c,pngget.o,pngget.pic.o,png.h,pngmem.c,pngmem.o,pngmem.pic.o,png.o,png.pic.o,pngpread.c,pngpread.o,pngpread.pic.o,pngread.c,pngread.o,pngread.pic.o,pngrio.c,pngrio.o,pngrio.pic.o,pngrtran.c,pngrtran.o,pngrtran.pic.o,pngrutil.c,pngrutil.o,pngrutil.pic.o,pngset.c,pngset.o,pngset.pic.o,pngtest,pngtest.c,pngtest.o,pngtest.png,pngtrans.c,pngtrans.o,pngtrans.pic.o,pngwio.c,pngwio.o,pngwio.pic.o,pngwrite.c,pngwrite.o,pngwrite.pic.o,pngwtran.c,pngwtran.o,pngwtran.pic.o,pngwutil.c,pngwutil.o,pngwutil.pic.o,README,scripts,TODO}
22   rm -r $pkgdir/usr/lib/{ANNOUNCE,ansi2knr.1,ansi2knr.c,CHANGES,example.c,INSTALL,KNOWNBUG,libpng.a,libpng.so,libpng.txt,makefile,png.5,png.c,pngconf.h,pngerror.c,pngerror.o,pngerror.pic.o,pngget.c,pngget.o,pngget.pic.o,png.h,pngmem.c,pngmem.o,pngmem.pic.o,png.o,png.pic.o,pngpread.c,pngpread.o,pngpread.pic.o,pngread.c,pngread.o,pngread.pic.o,pngrio.c,pngrio.o,pngrio.pic.o,pngrtran.c,pngrtran.o,pngrtran.pic.o,pngrutil.c,pngrutil.o,pngrutil.pic.o,pngset.c,pngset.o,pngset.pic.o,pngtest,pngtest.c,pngtest.o,pngtest.png,pngtrans.c,pngtrans.o,pngtrans.pic.o,pngwio.c,pngwio.o,pngwio.pic.o,pngwrite.c,pngwrite.o,pngwrite.pic.o,pngwtran.c,pngwtran.o,pngwtran.pic.o,pngwutil.c,pngwutil.o,pngwutil.pic.o,README,scripts,TODO}
23   chmod 755 $pkgdir/usr/lib/libpng.so.2.1.0.2