summaryrefslogtreecommitdiff
path: root/libre/doublecmd-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/doublecmd-libre/PKGBUILD')
-rw-r--r--libre/doublecmd-libre/PKGBUILD43
1 files changed, 22 insertions, 21 deletions
diff --git a/libre/doublecmd-libre/PKGBUILD b/libre/doublecmd-libre/PKGBUILD
index 797bbdfc2..10f8bc81f 100644
--- a/libre/doublecmd-libre/PKGBUILD
+++ b/libre/doublecmd-libre/PKGBUILD
@@ -1,14 +1,14 @@
# vim:set ft=sh:
-# $Id: PKGBUILD 103163 2013-12-28 11:01:37Z idevolder $
+# $Id: PKGBUILD 108140 2014-03-23 19:43:34Z idevolder $
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Contributor: (sirocco AT ngs.ru)
_pkgbase=doublecmd
pkgbase=doublecmd-libre
pkgname=('doublecmd-libre-gtk2' 'doublecmd-libre-qt')
-pkgver=0.5.8
+pkgver=0.5.9
_helpver=0.5.5
-pkgrel=1.1
+pkgrel=1
url="http://doublecmd.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
@@ -18,41 +18,42 @@ makedepends=('lazarus' 'qt4pas' 'gtk2')
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"
+ "http://www.herecura.be/files/lazarus-20140321-2.tar.gz"
)
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
+ 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
- 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
+ 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-libre-gtk2() {
- pkgdesc="twin-panel (commander-style) file manager (GTK), with unar recommendation"
+ pkgdesc="twin-panel (commander-style) file manager (GTK), without libunrar recommendation"
depends=('gtk2')
conflicts=('doublecmd-libre-qt' 'doublecmd-gtk2' 'doublecmd-gtk2-libre')
replaces=('doublecmd-gtk2' 'doublecmd-gtk2-libre')
provides=("doublecmd-gtk2=${pkgver}" 'doublecmd-gtk2-libre')
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
@@ -61,13 +62,12 @@ package_doublecmd-libre-gtk2() {
}
package_doublecmd-libre-qt() {
- pkgdesc="twin-panel (commander-style) file manager (QT), with unar recommendation"
+ pkgdesc="twin-panel (commander-style) file manager (QT), without libunrar recommendation"
depends=('qt4pas')
conflicts=('doublecmd-libre-gtk2' 'doublecmd-qt' 'doublecmd-qt-libre')
replaces=('doublecmd-qt' 'doublecmd-qt-libre')
provides=("doublecmd-qt=${pkgver}" 'doublecmd-qt-libre')
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
@@ -75,5 +75,6 @@ package_doublecmd-libre-qt() {
cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
}
-sha256sums=('bfa85693b6cc06b7fd28ec8bd443ad9fb9d79d27a541e4f4d54bb9da2fb052ea'
- '5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf')
+sha256sums=('d5b3c93b3029f4b0a45b7c9912d34f753445e031c93bc0268d4cb4c313d06ba4'
+ '5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf'
+ '16560ad7403ffbee1800384768828e1fad924d03068c6248b68a78c393fc4e20')