summaryrefslogtreecommitdiff
path: root/libre/doublecmd-libre
diff options
context:
space:
mode:
authoraurelien <aurelien@cwb.io>2013-09-23 10:33:22 +0200
committeraurelien <aurelien@cwb.io>2013-09-23 10:33:22 +0200
commit2735c9d273c54b555681f30f5c685998fed7b484 (patch)
treef8172dbea44d1c4751a99a62fb236a14c9d2dc20 /libre/doublecmd-libre
parentd78a32a6ccb8663a62a093b54e947e2efc840fe0 (diff)
parent97f65e06566f3bb15bc7395624017b8e6ca0d043 (diff)
downloadabslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.gz
abslibre-2735c9d273c54b555681f30f5c685998fed7b484.tar.bz2
abslibre-2735c9d273c54b555681f30f5c685998fed7b484.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/doublecmd-libre')
-rw-r--r--libre/doublecmd-libre/PKGBUILD54
-rw-r--r--libre/doublecmd-libre/doublecmd.install6
2 files changed, 38 insertions, 22 deletions
diff --git a/libre/doublecmd-libre/PKGBUILD b/libre/doublecmd-libre/PKGBUILD
index 5eee8985c..9c51e7fbf 100644
--- a/libre/doublecmd-libre/PKGBUILD
+++ b/libre/doublecmd-libre/PKGBUILD
@@ -1,42 +1,58 @@
-# $Id$
+# vim:set ft=sh:
+# $Id: PKGBUILD 94327 2013-07-20 16:50:58Z idevolder $
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: (sirocco AT ngs.ru)
_pkgbase=doublecmd
pkgbase=doublecmd-libre
-pkgname=('doublecmd-gtk2-libre' 'doublecmd-qt-libre')
-pkgver=0.5.4
-_helpver=0.5.1
-pkgrel=2.1
+pkgname=('doublecmd-libre-gtk2' 'doublecmd-libre-qt')
+pkgver=0.5.6
+_helpver=0.5.5
+pkgrel=1
url="http://doublecmd.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
install="$_pkgbase.install"
+provides=("$_pkgbase")
makedepends=('lazarus' 'qt4pas' 'gtk2')
-optdepends=('lua: scripting' 'p7zip: support for 7zip archives')
-source=("http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-$pkgver-src.tar.gz"
+optdepends=(
+ 'lua51: scripting'
+ 'p7zip: support for 7zip archives'
+ 'unar: support for rar archives'
+)
+source=(
+ "http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-$pkgver-src.tar.gz"
"http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-help-$_helpver-src.tar.gz"
)
-sha256sums=('480b83279adeba007ad5c54f455733fae3d9c9ee61762e6b5a63e2e67b1cd7b7'
- 'd9f518e05e089b71aaa31c7d4af8177e77594a02be2c316e85e061e63b4c03e5')
+sha256sums=('b909ee5c57cb2803e4393163f5c44513144cb32e304fa2e1dfee6f33d0999bc5'
+ '5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf')
build() {
cp -a $_pkgbase-$pkgver $_pkgbase-gtk
cp -a $_pkgbase-$pkgver $_pkgbase-qt
cd "$srcdir/$_pkgbase-gtk"
+ if [ "$CARCH" = "i686" ]; then
+ sed -e '/fPIC/d' -i "$srcdir/$_pkgbase-gtk/components/doublecmd/doublecmd_common.lpk"
+ fi
+ sed -e 's/\(export\ lazbuild=\).*/\1"$(which\ lazbuild) --lazarusdir=\/usr\/lib\/lazarus"/' -i build.sh
./build.sh beta gtk2
cd "$srcdir/$_pkgbase-qt"
+ # dont use fPIC on i686
+ if [ "$CARCH" = "i686" ]; then
+ sed -e '/fPIC/d' -i "$srcdir/$_pkgbase-qt/components/doublecmd/doublecmd_common.lpk"
+ fi
+ sed -e 's/\(export\ lazbuild=\).*/\1"$(which\ lazbuild) --lazarusdir=\/usr\/lib\/lazarus"/' -i build.sh
./build.sh beta qt
}
-package_doublecmd-gtk2-libre() {
- pkgdesc="twin-panel (commander-style) file manager (GTK)"
+package_doublecmd-libre-gtk2() {
+ pkgdesc="twin-panel (commander-style) file manager (GTK), with unar recommendation"
depends=('gtk2')
- conflicts=('doublecmd-gtk2')
- replaces=('doublecmd-gtk2')
- provides=("doublecmd-gtk2=${pkgver}" 'doublecmd')
+ conflicts=('doublecmd-gtk2' 'doublecmd-gtk2-libre')
+ replaces=('doublecmd-gtk2' 'doublecmd-gtk2-libre')
+ provides=("doublecmd-gtk2=${pkgver}")
cd "$srcdir/$_pkgbase-gtk"
sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh
./install/linux/install.sh --install-prefix="$pkgdir"
@@ -46,12 +62,12 @@ package_doublecmd-gtk2-libre() {
cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
}
-package_doublecmd-qt-libre() {
- pkgdesc="twin-panel (commander-style) file manager (QT)"
+package_doublecmd-libre-qt() {
+ pkgdesc="twin-panel (commander-style) file manager (QT), with unar recommendation"
depends=('qt4pas')
- conflicts=('doublecmd-qt')
- replaces=('doublecmd-qt')
- provides=("doublecmd-qt=${pkgver}" 'doublecmd')
+ conflicts=('doublecmd-qt' 'doublecmd-qt-libre')
+ replaces=('doublecmd-qt' 'doublecmd-qt-libre')
+ provides=("doublecmd-qt=${pkgver}")
cd "$srcdir/$_pkgbase-qt"
sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh
./install/linux/install.sh --install-prefix="$pkgdir"
diff --git a/libre/doublecmd-libre/doublecmd.install b/libre/doublecmd-libre/doublecmd.install
index 40d56528f..c27b5bb23 100644
--- a/libre/doublecmd-libre/doublecmd.install
+++ b/libre/doublecmd-libre/doublecmd.install
@@ -3,20 +3,20 @@ update_icons() {
# Setup Menus
if which update-desktop-database
then
- update-desktop-database -q /usr/share/applications
+ update-desktop-database -q /usr/share/applications > /dev/null 2>&1
fi
# Setup MIME types
if which update-mime-database
then
- update-mime-database /usr/share/mime >/dev/null
+ update-mime-database /usr/share/mime > /dev/null 2>&1
fi
# Setup Icons
touch -c /usr/share/icons/hicolor
if which gtk-update-icon-cache
then
- gtk-update-icon-cache -tq /usr/share/icons/hicolor
+ gtk-update-icon-cache -tq /usr/share/icons/hicolor > /dev/null 2>&1
fi
}