From 0873eff3fe57c9e108ef0cf5f5b700bbb449629a Mon Sep 17 00:00:00 2001
From: "coadde [Márcio Alexandre Silva Delgado]"
Date: Thu, 4 Sep 2014 02:24:10 -0300
Subject: rename to doublecmd
---
libre/doublecmd/PKGBUILD | 110 +++++++++++
libre/doublecmd/doublecmd.install | 34 ++++
libre/doublecmd/help-libre.patch | 153 ++++++++++++++
libre/doublecmd/libre.patch | 407 ++++++++++++++++++++++++++++++++++++++
4 files changed, 704 insertions(+)
create mode 100644 libre/doublecmd/PKGBUILD
create mode 100644 libre/doublecmd/doublecmd.install
create mode 100644 libre/doublecmd/help-libre.patch
create mode 100644 libre/doublecmd/libre.patch
(limited to 'libre/doublecmd')
diff --git a/libre/doublecmd/PKGBUILD b/libre/doublecmd/PKGBUILD
new file mode 100644
index 000000000..68192fdad
--- /dev/null
+++ b/libre/doublecmd/PKGBUILD
@@ -0,0 +1,110 @@
+# vim:set ft=sh:
+# $Id: PKGBUILD 111059 2014-05-12 18:14:06Z idevolder $
+# Maintainer (Arch): BlackIkeEagle
+# Contributor (Arch): (sirocco AT ngs.ru)
+
+pkgbase=doublecmd
+_pkgbase=$pkgname-libre
+pkgname=("$pkgbase-gtk2" "$pkgbase-qt")
+pkgver=0.5.10
+_helpver=0.5.5
+pkgrel=1.parabola1
+url="http://$pkgbase.sourceforge.net/"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+install="$pkgbase.install"
+provides=("$pkgbase")
+makedepends=('lazarus' 'qt4pas' 'gtk2')
+optdepends=(
+ 'lua51: scripting'
+ 'p7zip: support for 7zip archives'
+)
+mksource=(
+ "http://downloads.sourceforge.net/project/$pkgbase/Double%20Commander%20Source/$pkgbase-$pkgver-src.tar.gz"
+)
+source=(
+ "https://repo.parabolagnulinux.org/other/$_pkgbase/$_pkgbase-$pkgver-src.tar.gz"
+ "http://downloads.sourceforge.net/project/$pkgbase/Double%20Commander%20Source/$pkgbase-help-$_helpver-src.tar.gz"
+ "http://www.herecura.be/files/lazarus-20140321-2.tar.gz"
+ 'libre.patch'
+ 'help-libre.patch'
+)
+
+mksource() {
+ cd "$srcdir/$pkgbase-$pkgver"
+
+ msg2 'remove nonfree unRAR utility files from the source'
+ rm -rv install/linux/deb/libunrar
+}
+
+prepare() {
+ cd "$srcdir/$_pkgbase-$pkgver"
+
+ msg2 'remove nonfree libunrar, unace, unarj support and references'
+ rm -rv plugins/wcx/unrar
+ rm -v install/linux/rpm/libunrar.spec
+ rm -v install/darwin/make-unrar.sh
+ patch -Np1 -i ../libre.patch
+
+ cd "$srcdir/$pkgbase-help-$_helpver"
+
+ msg2 'remove nonfree libunrar, unace, unarj support and references on the help'
+ patch -Np1 -i ../help-libre.patch
+}
+
+build() {
+ cp -a $_pkgbase-$pkgver $pkgbase-gtk
+ cp -a $_pkgbase-$pkgver $pkgbase-qt
+
+ msg2 'build gtk'
+ gtkdir="$srcdir/$pkgbase-gtk"
+ cd "$gtkdir"
+ bsdtar -zxf "$srcdir/lazarus-20140321-2.tar.gz"
+ sed -e "s/\\(export\\ lazbuild=\\).*/\\1\"\$(which lazbuild) --primary-config-path=${gtkdir//\//\\\/}\/lazarus\/lazarus-$CARCH\"/" -i build.sh
+ sed -e "s/%%SRCDIR%%/${gtkdir//\//\\\/}/g" -i lazarus/packagefiles.xml
+ ./build.sh beta gtk2
+
+ msg2 'build qt'
+ qtdir="$srcdir/$pkgbase-qt"
+ cd "$qtdir"
+ bsdtar -zxf "$srcdir/lazarus-20140321-2.tar.gz"
+ sed -e "s/\\(export\\ lazbuild=\\).*/\\1\"\$(which lazbuild) --primary-config-path=${qtdir//\//\\\/}\/lazarus\/lazarus-$CARCH\"/" -i build.sh
+ sed -e "s/%%SRCDIR%%/${qtdir//\//\\\/}/g" -i lazarus/packagefiles.xml
+ ./build.sh beta qt
+
+}
+
+package_doublecmd-gtk2() {
+ pkgdesc="twin-panel (commander-style) file manager (GTK), without nonfree libunrar, unace and unarj support"
+ depends=('gtk2')
+ conflicts=("$pkgbase-qt" "$_pkgbase-gtk2" "$pkgbase-gtk2-libre")
+ replaces=("$_pkgbase-gtk2" "$pkgbase-gtk2-libre")
+ provides=("$pkgbase-gtk2-libre")
+ cd "$srcdir/$pkgbase-gtk"
+ ./install/linux/install.sh --install-prefix="$pkgdir"
+
+ # install doc
+ cd "$srcdir/$pkgbase-help-$_helpver"
+ cp -a * "$pkgdir/usr/share/$pkgbase/doc/"
+}
+
+package_doublecmd-qt() {
+ pkgdesc="twin-panel (commander-style) file manager (QT), without nonfree libunrar, unace and unarj support"
+ depends=('qt4pas')
+ conflicts=("$pkgbase-gtk2" "$_pkgbase-qt" "$pkgbase-qt-libre")
+ replaces=("$_pkgbase-qt" "$pkgbase-qt-libre")
+ provides=("$pkgbase-qt-libre")
+ cd "$srcdir/$pkgbase-qt"
+ ./install/linux/install.sh --install-prefix="$pkgdir"
+
+ # install doc
+ cd "$srcdir/$pkgbase-help-$_helpver"
+ cp -a * "$pkgdir/usr/share/$pkgbase/doc/"
+}
+
+mksha256sums=('cc54a2d973836f46f6f99fff1b8dd631bc96d8aa8524c3cd9cfc60b0c7a3dc12')
+sha256sums=('7a194a40930aaffc7772a2ad14f53af287bdc61cc967d4179223815da4a169a7'
+ '5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf'
+ '16560ad7403ffbee1800384768828e1fad924d03068c6248b68a78c393fc4e20'
+ '79853d83a2fa7cdb54ab79586c2c3d123de90f849dd52d1a712b1e4a1eeaefcd'
+ '3f0de0b4a35ec3c8a172864f3e6fd2ad11d3c32c3eee05d08b51d06002d05f7f')
diff --git a/libre/doublecmd/doublecmd.install b/libre/doublecmd/doublecmd.install
new file mode 100644
index 000000000..c27b5bb23
--- /dev/null
+++ b/libre/doublecmd/doublecmd.install
@@ -0,0 +1,34 @@
+update_icons() {
+
+ # Setup Menus
+ if which update-desktop-database
+ then
+ 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 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 > /dev/null 2>&1
+ fi
+
+}
+
+post_install() {
+ update_icons
+}
+
+post_upgrade() {
+ update_icons
+}
+
+post_remove() {
+ update_icons
+}
diff --git a/libre/doublecmd/help-libre.patch b/libre/doublecmd/help-libre.patch
new file mode 100644
index 000000000..c1d859d8b
--- /dev/null
+++ b/libre/doublecmd/help-libre.patch
@@ -0,0 +1,153 @@
+diff --git a/en/about.html b/en/about.html
+index 7a1b2d0..6ab90ab 100644
+--- a/en/about.html
++++ b/en/about.html
+@@ -20,7 +20,7 @@
+ customizable columns
+ built-in file viewer (F3) to view files of ANY SIZE in hexadecimal, binary or text format
+ built-in text editor (F4) with syntax highlighting
+- archives are handled like subdirectories. You can easily copy files to and from the archive. Supports following types: ZIP, TAR GZ, TGZ, BZ2, RPM, CPIO, DEB, RAR
++ archives are handled like subdirectories. You can easily copy files to and from the archive. Supports following types: ZIP, TAR GZ, TGZ, BZ2, RPM, CPIO, DEB
+ extended search function with full text search in any files
+ supports WCX, WLX, WDX and WFX plugins from Total Commander (also supports own DSX plugin format)
+ operations log
+diff --git a/en/help.html b/en/help.html
+index a53a867..a473c9f 100644
+--- a/en/help.html
++++ b/en/help.html
+@@ -53,7 +53,7 @@
+ Double Commander is a cross-platform (both GNU/Linux and Windows) file manager, supporting
+ WCX, WFX, WDX, WLX and DSX plugin types. The last type (DSX) is DC's own search plugin type.
+ The Windows version of Double Commander is compatible with many plugins from Total Commander (TC), which is more than half of those which I tried.
+- The Linux version has no such programs at all. DC comes installed with some WCX (archiver) plugins to work with cpio, deb, rpm, bz2, rar, zip, tar, gz, tgz archives as
++ The Linux version has no such programs at all. DC comes installed with some WCX (archiver) plugins to work with cpio, deb, rpm, bz2, zip, tar, gz, tgz archives as
+ directories (VFS), also a search plugin (DSX) and a lister videoplayer plugin for Linux (WLX). Other plugins can be installed manually.
+
+
+@@ -190,7 +190,7 @@
+ file renaming.
+
+ By selecting item Pack files (internal command
+- cm_PackFiles) we call a standard dialog to pack files to the zip, tar.gz, tgz and, possibly, rar archive formats.
++ cm_PackFiles) we call a standard dialog to pack files to the zip, tar.gz, tgz.
+
+
+ Also we can unpack files via
+diff --git a/en/multiarc.html b/en/multiarc.html
+index d1cbc7d..c2284ad 100644
+--- a/en/multiarc.html
++++ b/en/multiarc.html
+@@ -280,8 +280,6 @@ p,ul,ol /* Paragraph Style */
+ Command = String representing a command
+ Flag = 0 or 1 depending on state of this flag
+ TypeName is a short name for archive type. It is required and must be unique.
+-Example:
+-[ARJ]
+ Parameters
+ Archiver Path to archiver utilit. Pach can contain enviropment variable such as %WINDIR% or %COMMANDER_PATH%.
+ ID (optional) archive ID (2-digit hex numbers delimited with spaces).
+diff --git a/ru/about.html b/ru/about.html
+index 99d1c43..5e177d8 100644
+--- a/ru/about.html
++++ b/ru/about.html
+@@ -26,7 +26,7 @@
+ двоичном или текстовом формате
+ встроенный текстовый редактор (F4) c подсветкой синтаксиса
+ работа с архивами так же, как с подкаталогами. Вы можете легко копировать файлы в архив
+- и из него. Поддерживаются следующие типы архивов ZIP, TAR GZ, TGZ, а также BZ2, RPM, CPIO, DEB, RAR
++ и из него. Поддерживаются следующие типы архивов ZIP, TAR GZ, TGZ, а также BZ2, RPM, CPIO, DEB
+ расширенный поиск файлов, включая поиск текста в любых файлах
+ поддержка WCX, WDX и WFX плагинов от Total Commander
+ протоколирование файловых операций
+@@ -45,4 +45,4 @@
+
+