blob: 17b1aef3fc6a12ccbdf8f5275f46d7a31e7e38b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# vim:set ft=sh:
# $Id: PKGBUILD 110952 2014-05-10 14:08:05Z 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.9
_helpver=0.5.5
pkgrel=2
url="http://doublecmd.sourceforge.net/"
arch=('i686' 'x86_64')
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/$pkgname/$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-libre-gtk2() {
pkgdesc="twin-panel (commander-style) file manager (GTK), without nonfree libunrar, unace and unarj support"
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"
./install/linux/install.sh --install-prefix="$pkgdir"
# install doc
cd "$srcdir/$_pkgbase-help-$_helpver"
cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
}
package_doublecmd-libre-qt() {
pkgdesc="twin-panel (commander-style) file manager (QT), without nonfree libunrar, unace and unarj support"
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"
./install/linux/install.sh --install-prefix="$pkgdir"
# install doc
cd "$srcdir/$_pkgbase-help-$_helpver"
cp -a * "$pkgdir/usr/share/$_pkgbase/doc/"
}
mksha256sums=('d5b3c93b3029f4b0a45b7c9912d34f753445e031c93bc0268d4cb4c313d06ba4')
sha256sums=('d72f0e52f99fadcd5ebcc7cf6184394c124da57dda6b6af05774a1f5e767254e'
'5c5d00187df811df0734bf751a581bce7e1bdd4cf4639b2a1101f1da8743daaf'
'16560ad7403ffbee1800384768828e1fad924d03068c6248b68a78c393fc4e20'
'79853d83a2fa7cdb54ab79586c2c3d123de90f849dd52d1a712b1e4a1eeaefcd'
'3f0de0b4a35ec3c8a172864f3e6fd2ad11d3c32c3eee05d08b51d06002d05f7f')
|