updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / giftrans / PKGBUILD
blob835b2b650723966c24086e34e1345392b697b062
1 #Contributor: Christophe "tolgam" Gueret <tolgam@homegnu.net>
2 pkgname=giftrans
3 pkgver=1.12.2
4 pkgrel=2
5 pkgdesc="Making transparent GIF images"
6 url="http://www.abdn.ac.uk/tools/ibmpc/giftrans/index.hti"
7 license="GPL"
8 arch=(i686 x86_64)
9 source=(http://ftp.debian.org/debian/pool/main/g/giftrans/${pkgname}_${pkgver}.orig.tar.gz 
10         http://ftp.debian.org/debian/pool/main/g/giftrans/${pkgname}_${pkgver}-15.diff.gz)
11 md5sums=('886782be6f9bef1798615264ea7ed9f6'
12          'b84aeaee8ddc33e245737b954f8df0b0')
14 build() {
15         cd $startdir/src
16         patch -p0 < ${pkgname}_${pkgver}-15.diff
17         cd ${pkgname}-${pkgver}.orig
18         sed "s/\/etc\/X11\/rgb\.txt/\/usr\/share\/X11\/rgb.txt/" ${pkgname}.c > ${pkgname}-patched.c
19         gcc -g -O2 -Wall -o ${pkgname} ${pkgname}-patched.c
20         mkdir -p $startdir/pkg/usr/bin
21         cp giftrans $startdir/pkg/usr/bin
22         mkdir -p $startdir/pkg/usr/share/man/man1
23         cp giftrans.1 $startdir/pkg/usr/share/man/man1
24         chmod 644 $startdir/pkg/usr/share/man/man1/giftrans.1