updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / nautilus2 / PKGBUILD
blob85331b9a1b3f4f456b3a4b41c9a90125b3fe9ecd
1 # $Id: PKGBUILD,v 1.10 2008/10/21 22:45:02 BaSh Exp $
2 # Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
3 # Contributor: William Rea <sillywilly@gmail.com>
4 # Contributor: Perberos <perberos@gmail.com>
5 pkgname=nautilus2
6 _tarname=nautilus
7 pkgver=2.32.2.1
8 pkgrel=3
9 pkgdesc="The GNOME shell and file manager."
10 arch=('i686' 'x86_64')
11 url="ftp://ftp.gnome.org/pub/GNOME/sources/"
12 license=('GPL')
13 depends=('gnome-desktop2' 'libunique')
14 makedepends=('pkgconfig' 'intltool')
15 options=('!emptydirs')
16 conflicts=('nautilus')
17 install=nautilus.install
18 source=(ftp://ftp.gnome.org/pub/GNOME/sources/$_tarname/2.32/${_tarname}-${pkgver}.tar.gz)
19 sha256sums=('956d8f94830cf433dc19335dec6ea8c57a6810fcc117dad7dc1fd0a8a21c54b8')
21 provides=('nautilus2')
22 options=('!libtool')
24 build() {
25         cd "$srcdir/$_tarname-$pkgver"
27         # fix G_CONST_RETURN deprecated
28         sed -i "s/G_CONST_RETURN/const/g" src/nautilus-zoom-action.c
30         sed -i "s/G_CONST_RETURN/const/g" libnautilus-private/nautilus-icon-canvas-item.c
31         sed -i "s/G_CONST_RETURN/const/g" libnautilus-private/nautilus-icon-info.h
32         sed -i "s/G_CONST_RETURN/const/g" libnautilus-private/nautilus-icon-info.c
33         sed -i "s/G_CONST_RETURN/const/g" libnautilus-private/nautilus-search-engine-beagle.c
35         sed -i "s/G_CONST_RETURN/const/g" eel/eel-i18n.h
36         sed -i "s/G_CONST_RETURN/const/g" eel/eel-i18n.c
38         sed -i "s/G_CONST_RETURN/const/g" eel/eel-editable-label.h
39         sed -i "s/G_CONST_RETURN/const/g" eel/eel-editable-label.c
40         sed -i "s/G_CONST_RETURN/const/g" eel/eel-labeled-image.c
43         ./configure --prefix=/usr --sysconfdir=/etc \
44                 --localstatedir=/var --disable-static \
45                 --libexecdir=/usr/lib/${_tarname} \
46                 --disable-update-mimedb || return 1
48         make || return 1
51 package() {
52         cd "$srcdir/$_tarname-$pkgver"
54         make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1  DESTDIR="${pkgdir}" install || return 1
56         install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
57         gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
58         rm -f ${pkgdir}/etc/gconf/schemas/*.schemas