updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nautilus-elementary-bzr / PKGBUILD
blobc5215fcee57f156479f5f5e87f082845337a45fc
1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
3 pkgname=nautilus-elementary-bzr
4 _pkgname=nautilus
5 pkgver=171
6 pkgrel=2
7 pkgdesc="Nautilus patched for simplicity"
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/nautilus-elementary"
10 license=('GPL')
11 depends=('clutter-gtk2' 'desktop-file-utils' 'exempi' 'gnome-desktop2' 'gvfs' 'libexif' 'vte')
12 makedepends=('bzr' 'gnome-common' 'gobject-introspection' 'gtk-doc' 'intltool')
13 optdepends=('gloobus-preview-bzr: for preview support'
14             'ne-terminal-config: for embedded terminal')
15 provides=(${_pkgname}=3.0.1.1)
16 conflicts=(${_pkgname} ${_pkgname}-elementary)
17 options=('!libtool' '!emptydirs')
18 install=${pkgname}.install
20 _bzrtrunk="lp:${_pkgname}-elementary"
21 _bzrmod="${_pkgname}-elementary"
23 build() {
24   cd "${srcdir}"
26   msg "Connecting to the server...."
28   if [ -d ${_bzrmod} ]; then
29     bzr up ${_bzrmod}
30     msg "The local files are updated."
31   else
32     bzr co ${_bzrtrunk} ${_bzrmod}
33   fi
35   msg "BZR checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "${_bzrmod}-build"
39   cp -r "${_bzrmod}" "${_bzrmod}-build"
40   cd "${_bzrmod}-build"
42   ./autogen.sh
43   ./configure --prefix=/usr --sysconfdir=/etc \
44               --localstatedir=/var --disable-static \
45               --libexecdir=/usr/lib/nautilus \
46               --disable-update-mimedb \
47               --disable-packagekit \
48               --disable-appindicator
49   make
52 package() {
53   cd "${srcdir}/${_bzrmod}-build"
55   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
57   install -d -m755 "${pkgdir}/usr/share/gconf/schemas"
58   gconf-merge-schema "${pkgdir}"/usr/share/gconf/schemas/"${_pkgname}".schemas \
59     --domain "${_pkgname}" "${pkgdir}"/etc/gconf/schemas/*.schemas
60   rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas