archrelease: copy trunk to community-any
[ArchLinux/community.git] / imlib / trunk / PKGBUILD
blob8924484b8179b39fbcb232e10f94649818904443
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=imlib
4 pkgver=1.9.15
5 pkgrel=18
6 pkgdesc="General image handling library for X11 and Gtk"
7 arch=('x86_64')
8 url="http://freshmeat.net/projects/imlib/"
9 license=('GPL')
10 depends=('giflib' 'libpng' 'libtiff' 'libxext')
11 makedepends=('libxt')
12 source=(https://ftp.gnome.org/pub/GNOME/sources/imlib/1.9/${pkgname}-${pkgver}.tar.bz2
13         debian-bug448360.patch CAN-2004-1026.patch aclocal-fixes.patch 
14         imlib-1.9.15-libpng15.patch imlib-giflib51.patch imlib-gtk.patch)
15 sha512sums=('f50d9141b3c54b44921aa09c0a5ea848aefaa904efdd6da132dace42604671f8dbd3e4b71a596f054f0db4525ba2002864b5e5b21f8805cf1b5514b661ac254a'
16             '0c805568c54149239a3106293e7a4f5abe127abebc1a851cda87958fede996d6c0415fe1b47a7f023f2deb2e3460204d5aae4fce5787e402a026d46c2e7e662c'
17             'a75537267e9e276920fbc0360cd4832f727c6c9857401889bdb1466f3088c98e5ea2ef84a94a5873a3c12dda0b9aed36a5e2039fece87e51154a3b773d97aa5c'
18             'ca4d2a047ee07f25bb462c8b34fc8298ef9a31b39f83309598a696973534e144f8f02a130bb764737dfbd329073e64abe4f8a673d66731822fece4969d7ab02a'
19             'e7a6d48ef04fbcfcab998e6968130796ab3da1fd9def14ab2ccc713e0956f1f2be3f3a8f680ded5f00cb7ac9ea31d2f94de04aaa039ec5b03cece71f36f14294'
20             '91a62ed701974b953c2bc4f6b530ea7614b2195906110fcdc45bb200acacea0c54d431c3eafdcd2b33877606ef6b23bd34d051f99f90e5505d8e725b78278c89'
21             'fb05c545e8c8e3eaf6a6cc390c0c9211c37074f7bd6805529254d9c61d56ceb9b2e3877d276f46ac0b195ae796e52c5baad11781ef91272c955529396bdf6de7')
23 prepare() {
24   cd ${pkgname}-${pkgver}
25   patch -p1 -i "${srcdir}/debian-bug448360.patch"
26   patch -p1 -i "${srcdir}/CAN-2004-1026.patch"
27   patch -p0 -i "${srcdir}/aclocal-fixes.patch"
28   patch -p0 -i "${srcdir}/imlib-1.9.15-libpng15.patch"
29   patch -p1 -i "${srcdir}/imlib-giflib51.patch"
30   patch -p1 -i "${srcdir}/imlib-gtk.patch"
31   sed '/AC_PATH_XTRA/d' -i configure.in
32   mv configure.in configure.ac
33   libtoolize --force
34   cp /usr/bin/libtool .
37 build() {
38   cd ${pkgname}-${pkgver}
39   autoreconf --force --install
40   ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --enable-shm --disable-static
41   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
42   make
45 package() {
46   cd ${pkgname}-${pkgver}
47   make DESTDIR="${pkgdir}" install