1 # Contributors: Flamelab, crazyelf5
6 pkgdesc="A sleek and fast GTK3 file manager"
8 url="https://launchpad.net/marlin"
9 license=('GPL2' 'GPL3')
10 depends=('varka-bzr' 'glib2' 'pango' 'gtk3' 'libgee' 'sqlite3' 'dbus-glib' 'gtk-update-icon-cache'
11 'libnotify' 'gnome-icon-theme' 'dconf' 'cairo' 'atk' 'tumbler' 'gettext' 'desktop-file-utils')
12 makedepends=('bzr' 'vala' 'cmake')
13 optdepends=('extended-actions-bzr: Plugins integration [AUR]'
14 'egtk-bzr: Elementary GTK Theme [AUR]'
15 'marlin-dropbox-plugin-bzr: Dropbox integration [AUR]')
16 install=$pkgname.install
21 if ! pacman -Qs unity &>/dev/null; then
28 msg "Connecting to Bazaar server...."
30 if [ -d $_bzrmod ]; then
31 cd $_bzrmod && bzr pull $_bzrtrunk -r $pkgver && cd ..
32 msg "The local files are updated."
34 bzr branch $_bzrtrunk $_bzrmod -r $pkgver
37 msg "BZR checkout done or server timeout"
38 msg "Starting make..."
40 [ -d $_bzrmod-build ] && rm -rf $_bzrmod-build
41 cp -r $_bzrmod $_bzrmod-build
43 [ -d build ] && rm -rf build
46 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_EXE_LINKER_FLAGS="$CFLAGS -lm" -DGSETTINGS_COMPILE=OFF -DGSETTINGS_LOCALINSTALL=OFF -DWITH_UNITY=${_UNITY}
51 cd "$srcdir/$_bzrmod-build/build"
52 make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install