updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lib32-gnome-vfs / PKGBUILD
blob279c69f10e0dbd811668de4425b064a0587123f4
1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
3 _pkgbase=gnome-vfs
4 pkgname=lib32-$_pkgbase
5 pkgver=2.24.4
6 pkgrel=6
7 pkgdesc="The GNOME Virtual File System (32 bit)"
8 arch=('x86_64')
9 license=('LGPL')
10 depends=('lib32-bzip2' 'lib32-avahi' 'lib32-smbclient' 'lib32-gconf'
11          'lib32-krb5' 'lib32-gnutls' 'lib32-libgcrypt' "$_pkgbase")
12 makedepends=('intltool' 'gtk-doc' 'gnome-common' 'lib32-dbus-glib'
13              'gnome-mime-data' 'lib32-keyutils')
14 options=('!libtool' '!emptydirs' '!docs')
15 url="http://www.gnome.org"
16 source=(http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/${pkgver%.*}/$_pkgbase-${pkgver}.tar.bz2
17         gnutls-config.patch
18         gcrypt-config.patch)
19 sha256sums=('62de64b5b804eb04104ff98fcd6a8b7276d510a49fbd9c0feb568f8996444faa'
20             '66c7cfb12995c0dd94a2caea95c7e3c55981993f05a79c585d60915ff131955d'
21             'c059e218f310da683778919d36e7862f7e763384805f6453d328fbaf507a8114')
23 build() {
24   export CC='gcc -m32'
25   export CXX='g++ -m32' 
26   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
27         
28   cd "${srcdir}/${_pkgbase}-${pkgver}"
29   
30   #Fix build with new gnutls
31   patch -Np1 -i "${srcdir}/gnutls-config.patch"
32   #fix build with new libgcrypt >= 1.5.0
33   patch -Np1 -i "${srcdir}/gcrypt-config.patch"
34   libtoolize --force
35   gtkdocize
36   aclocal
37   autoconf
38   automake
40   ./configure --prefix=/usr --sysconfdir=/etc \
41               --localstatedir=/var --disable-static \
42               --libexecdir=/usr/lib32/gnome-vfs-2.0 \
43               --enable-{avahi,gnutls,samba} \
44               --disable-{hal,howl,openssl} \
45               --libdir=/usr/lib32
46   make
49 package() {
50   cd "${srcdir}/${_pkgbase}-${pkgver}"
51   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
52   rm -rf ${pkgdir}/{etc,usr/{bin,include,share}}