updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / libtiff4 / PKGBUILD
blob16442f97e0666995afce117ac65d3f4394fd51bf
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
2 # Contributor: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
4 pkgname=libtiff4
5 pkgver=3.9.5
6 _relver=2
7 pkgrel=2
8 pkgdesc="A package that installs libtiff.so.4 suitable for use with sikuli-ide and other programs that require it."
9 arch=('i686' 'x86_64')
10 url="http://bbs.archlinux.org/viewtopic.php?id=45393"
11 license=('custom')
12 md5sums=('710abed9737933ab48247c98134f35dc')
13 case "$CARCH" in
14         i686) _arch='i386';;
15         x86_64) _arch='amd64';  md5sums=('7e588dfd50b7bfcfadc47bfef59fc750');;
16 esac
17 source=(http://security.ubuntu.com/ubuntu/pool/main/t/tiff/libtiff4_${pkgver}-${_relver}_${_arch}.deb)
18 depends=('zlib' 'libjpeg-turbo')
19 package() {
20   ar x libtiff4_${pkgver}-${_relver}_${_arch}.deb
21   tar xf data.tar.gz
22   
23   [ "$CARCH" = x86_64 ] && cd usr/lib/x86_64-linux-gnu
24   [ "$CARCH" = i686 ] && cd usr/lib/i386-linux-gnu
25   
26   install -Dm755 libtiff.so.4.3.4  $pkgdir/usr/lib/libtiff.so.4.3.4
27   cd $pkgdir/usr/lib
28   ln -s libtiff.so.4.3.4 libtiff.so.4
30   install -Dm644 $srcdir/usr/share/doc/libtiff4/copyright $pkgdir/usr/share/licenses/libtiff4/LICENSE