diff options
author | root <root@rshg054.dnsready.net> | 2012-08-21 00:02:33 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-21 00:02:33 +0000 |
commit | a3669c04838b48b6891b2ffc4b296fa515f8174f (patch) | |
tree | fb838dbf7e59e2f79d7fca0fce6d93c254a5c173 /libre/doublecmd-libre | |
parent | 524da814660fa35bca4a24d0faa0a10b7eab5c6f (diff) |
Tue Aug 21 00:02:33 UTC 2012
Diffstat (limited to 'libre/doublecmd-libre')
-rw-r--r-- | libre/doublecmd-libre/PKGBUILD | 62 | ||||
-rw-r--r-- | libre/doublecmd-libre/doublecmd.install | 34 |
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 +} |