summaryrefslogtreecommitdiff
path: root/community/nemo/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-20 00:04:38 -0800
committerroot <root@rshg054.dnsready.net>2013-02-20 00:04:38 -0800
commit1bd47d3e04c409582486ea3ec915d3b7899f6841 (patch)
treef09c9d0e2af9846a6fe61c07c3d7973c979f103c /community/nemo/PKGBUILD
parentba105c9a82cf668f973a140c1792a3c02589980d (diff)
Wed Feb 20 00:04:38 PST 2013
Diffstat (limited to 'community/nemo/PKGBUILD')
-rw-r--r--community/nemo/PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/community/nemo/PKGBUILD b/community/nemo/PKGBUILD
new file mode 100644
index 000000000..b89dda95c
--- /dev/null
+++ b/community/nemo/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 84548 2013-02-19 20:34:47Z faidoc $
+# Maintainer: Alexandre Filgueira <alexfilgueira@cinnarch.com>
+# Contributor: Ner0
+
+pkgname=nemo
+pkgver=1.7.1
+pkgrel=1
+pkgdesc="Cinnamon file manager (Nautilus fork), stable version"
+arch=('i686' 'x86_64')
+url="https://github.com/linuxmint/nemo"
+license=('GPL')
+depends=('libexif' 'gvfs' 'dconf' 'desktop-file-utils' 'exempi' 'python2'
+ 'gnome-desktop' 'gnome-icon-theme' 'libnotify' 'libtracker-sparql')
+makedepends=('gtk-doc' 'gobject-introspection' 'intltool' 'gnome-common')
+optdepends=('gksu: Open as Root')
+provides=('nemo-fm')
+replaces=('nemo-fm')
+conflicts=('nemo-fm')
+options=('!emptydirs' '!libtool')
+install=nemo.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/nemo/tarball/$pkgver"
+ "gnome-autogen.sh")
+md5sums=('b348b6e340e055bef3163555b99621bb'
+ 'a925691c9b57a6a884dcf07da057fd1f')
+
+build() {
+ cd linuxmint-nemo-*
+
+ # Get default terminal value
+ _terminal=$(gsettings get org.gnome.desktop.default-applications.terminal exec | tr -d "'")
+
+ # Set "Open in Terminal" to default terminal (Arch doesn't use x-terminal-emulator)
+ sed -i "s/x-terminal-emulator/$_terminal/" src/nemo-view.c
+
+ cp ${srcdir}/gnome-autogen.sh .
+ sed -i 's/\ --warn-all\ --warn-error//' src/Makefile.am
+ sed -i 's/gnome-autogen.sh/.\/gnome-autogen.sh/g' autogen.sh
+ chmod +x gnome-autogen.sh
+
+ ./autogen.sh --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --disable-static \
+ --libexecdir=/usr/lib/nemo \
+ --disable-nst-extension \
+ --disable-update-mimedb \
+ --disable-packagekit \
+ --disable-gtk-doc-html \
+ --disable-schemas-compile
+ make
+}
+
+package() {
+ cd linuxmint-nemo-*
+
+ make DESTDIR="$pkgdir/" install
+
+ # Python2 fix
+ sed -i 's/bin\/python/bin\/python2/g' "${pkgdir}/usr/share/nemo/actions/myaction.py"
+}