summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-20 18:22:12 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-20 18:22:12 -0300
commit4e5bf771780bac1ea5f48cac4a2642dbf0b662b0 (patch)
tree3cf4067278ee08db86e442816cf0aa59d0b2e6fb
parent2aa5e5c7fcc998d619cc9ff49f1ea2b2fb6d89c3 (diff)
doublecmd-gtk2-libre and doublecmd-qt-libre: new packages for [libre] repo
-rw-r--r--libre/doublecmd-libre/PKGBUILD62
-rw-r--r--libre/doublecmd-libre/doublecmd.install34
2 files changed, 96 insertions, 0 deletions
diff --git a/libre/doublecmd-libre/PKGBUILD b/libre/doublecmd-libre/PKGBUILD
new file mode 100644
index 000000000..5eee8985c
--- /dev/null
+++ b/libre/doublecmd-libre/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id$
+# 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
+url="http://doublecmd.sourceforge.net/"
+arch=('i686' 'x86_64')
+license=('GPL')
+install="$_pkgbase.install"
+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"
+ "http://downloads.sourceforge.net/project/$_pkgbase/Double%20Commander%20Source/$_pkgbase-help-$_helpver-src.tar.gz"
+)
+sha256sums=('480b83279adeba007ad5c54f455733fae3d9c9ee61762e6b5a63e2e67b1cd7b7'
+ 'd9f518e05e089b71aaa31c7d4af8177e77594a02be2c316e85e061e63b4c03e5')
+
+build() {
+ cp -a $_pkgbase-$pkgver $_pkgbase-gtk
+ cp -a $_pkgbase-$pkgver $_pkgbase-qt
+
+ cd "$srcdir/$_pkgbase-gtk"
+ ./build.sh beta gtk2
+
+ cd "$srcdir/$_pkgbase-qt"
+ ./build.sh beta qt
+}
+
+package_doublecmd-gtk2-libre() {
+ pkgdesc="twin-panel (commander-style) file manager (GTK)"
+ depends=('gtk2')
+ conflicts=('doublecmd-gtk2')
+ replaces=('doublecmd-gtk2')
+ provides=("doublecmd-gtk2=${pkgver}" 'doublecmd')
+ cd "$srcdir/$_pkgbase-gtk"
+ sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh
+ ./install/linux/install.sh --install-prefix="$pkgdir"
+
+ # install doc
+ cd "$srcdir/$_pkgbase-help-$_helpver"
+ cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
+}
+
+package_doublecmd-qt-libre() {
+ pkgdesc="twin-panel (commander-style) file manager (QT)"
+ depends=('qt4pas')
+ conflicts=('doublecmd-qt')
+ replaces=('doublecmd-qt')
+ provides=("doublecmd-qt=${pkgver}" 'doublecmd')
+ cd "$srcdir/$_pkgbase-qt"
+ sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i ./install/linux/install.sh
+ ./install/linux/install.sh --install-prefix="$pkgdir"
+
+ # install doc
+ cd "$srcdir/$_pkgbase-help-$_helpver"
+ cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
+}
diff --git a/libre/doublecmd-libre/doublecmd.install b/libre/doublecmd-libre/doublecmd.install
new file mode 100644
index 000000000..40d56528f
--- /dev/null
+++ b/libre/doublecmd-libre/doublecmd.install
@@ -0,0 +1,34 @@
+update_icons() {
+
+ # Setup Menus
+ if which update-desktop-database
+ then
+ update-desktop-database -q /usr/share/applications
+ fi
+
+ # Setup MIME types
+ if which update-mime-database
+ then
+ update-mime-database /usr/share/mime >/dev/null
+ 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
+ fi
+
+}
+
+post_install() {
+ update_icons
+}
+
+post_upgrade() {
+ update_icons
+}
+
+post_remove() {
+ update_icons
+}