summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-20 01:15:40 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-06-20 01:15:40 -0300
commite346af8e82b0171f06d0923a9e8026276015bb29 (patch)
tree5f76822f5d9a3cd86732ce07bd8b998f1e8f7854 /libre
parent1c7e062a237cabcd07151dd6d1c51cda0f561f5e (diff)
downloadabslibre-e346af8e82b0171f06d0923a9e8026276015bb29.tar.gz
abslibre-e346af8e82b0171f06d0923a9e8026276015bb29.tar.bz2
abslibre-e346af8e82b0171f06d0923a9e8026276015bb29.zip
spacefm-libre: add new package to [libre]
Diffstat (limited to 'libre')
-rw-r--r--libre/spacefm-libre/PKGBUILD51
-rw-r--r--libre/spacefm-libre/libre.patch24
-rw-r--r--libre/spacefm-libre/spacefm.install14
3 files changed, 89 insertions, 0 deletions
diff --git a/libre/spacefm-libre/PKGBUILD b/libre/spacefm-libre/PKGBUILD
new file mode 100644
index 000000000..10b6cec15
--- /dev/null
+++ b/libre/spacefm-libre/PKGBUILD
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 108682 2014-04-01 08:51:32Z bpiotrowski $
+# Maintainer (Arch): Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor (Arch): IgnorantGuru http://igurublog.wordpress.com/contact-ignorantguru/
+# Contributor (Arch): ridikulus_rat <the.ridikulus.rat@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Edison Ibañez <arkhan.xxx@gmail.com>
+
+_pkgname=spacefm
+pkgname=spacefm-libre
+pkgver=0.9.4
+pkgrel=1
+pkgdesc='Multi-panel tabbed file manager, with unar support'
+arch=('i686' 'x86_64')
+url='http://ignorantguru.github.com/spacefm/'
+license=('GPL3')
+install=$_pkgname.install
+depends=('gtk3' 'shared-mime-info' 'desktop-file-utils' 'startup-notification'
+ 'systemd' 'bash' 'unar')
+makedepends=('intltool' 'gettext')
+optdepends=('lsof: device processes'
+ 'wget: plugin download'
+ 'gksu: perform as root functionality'
+ 'udevil: mount as non-root user and mount networks'
+ 'udisks: mount as non-root user'
+ 'udisks2: mount as non-root user')
+replaces=($_pkgname)
+conflicts=($_pkgname)
+provides=($_pkgname=$pkgver)
+source=(https://github.com/IgnorantGuru/spacefm/archive/$pkgver.tar.gz
+ libre.patch)
+md5sums=('daeee7dcccea33d6258a0a9d783470c4'
+ '30ba2b4b8f5ae7bf1552689b192eab89')
+
+prepare() {
+ # replace nonfree unrar with unar support
+ cd $_pkgname-$pkgver
+ patch -Np1 -i $srcdir/libre.patch src/ptk/ptk-file-archiver.c
+}
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-pixmaps \
+ --with-gtk3
+ make
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
diff --git a/libre/spacefm-libre/libre.patch b/libre/spacefm-libre/libre.patch
new file mode 100644
index 000000000..82d51f705
--- /dev/null
+++ b/libre/spacefm-libre/libre.patch
@@ -0,0 +1,24 @@
+From 4605df33f85e5dbd4cc0238b9d289ff73601d898 Mon Sep 17 00:00:00 2001
+From: Edison Ibañez <arkhan.xxx@gmail.com>
+Date: mar, 20 may 2014 10:27:55 -0500
+Subject: [PATCH] replace nonfree unrar with unar support
+
+
+diff --git a/src/ptk/ptk-file-archiver.c b/src/ptk/ptk-file-archiver.c
+index ec9fbd7..55648d2 100644
+--- a/src/ptk/ptk-file-archiver.c
++++ b/src/ptk/ptk-file-archiver.c
+@@ -80,8 +80,8 @@ const ArchiveHandler handlers[]=
+ {
+ "application/x-rar",
+ "rar a -r %o",
+- "unrar -o- x",
+- "unrar lt",
++ "unar -D ",
++ "unar -D ",
+ ".rar", "arc_rar", TRUE
+ },
+ {
+--
+Gitg
+
diff --git a/libre/spacefm-libre/spacefm.install b/libre/spacefm-libre/spacefm.install
new file mode 100644
index 000000000..76a5d56b9
--- /dev/null
+++ b/libre/spacefm-libre/spacefm.install
@@ -0,0 +1,14 @@
+post_install() {
+ update-mime-database /usr/share/mime > /dev/null
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ [[ -d /usr/share/icons/Faenza ]] && gtk-update-icon-cache -q -t -f /usr/share/icons/Faenza
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}