1 # Maintainer: Stanislav GE <ginermail@gmail.com>
6 pkgdesc="Double Commander is a cross platform open source file manager with two panels side by side. It is inspired by Total Commander and features some new ideas."
8 url=http://doublecmd.sourceforge.net
10 makedepends=('lazarus>=0.9.29' 'fpc>=2.2.4' 'subversion')
11 _svntrunk=http://doublecmd.svn.sourceforge.net/svnroot/doublecmd/trunk
17 if [ -d $_svnmod/.svn ]; then
18 (cd $_svnmod && svn up -r $pkgver)
20 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
22 msg "SVN checkout done or server timeout"
23 msg "Starting make..."
24 cp -r $_svnmod $_svnmod-build
28 cd $srcdir/$_svnmod-build
31 # create doublecmd link to /usr/bin
33 install -d $pkgdir/usr/bin
34 ln -s $prefix/doublecmd $pkgdir/usr/bin/doublecmd
36 # install desktop file and icon
37 install -D -m 644 install/linux/doublecmd.desktop $pkgdir/usr/share/applications/doublecmd.desktop
38 install -D -m 644 doublecmd.png $pkgdir/usr/share/pixmaps/doublecmd.png
41 for plugin in plugins/wcx/*/lib/*.wcx \
42 plugins/wdx/*/lib/*.wdx \
43 plugins/wlx/*/lib/*.wlx \
44 plugins/dsx/*/lib/*.dsx \
45 plugins/wfx/*/lib/*.wfx \
47 dest_plugin_path=$(echo $pkgdir/$prefix/$plugin|sed 's/\/lib\//\//')
48 install -D -m 644 $plugin $dest_plugin_path
51 # install doc, language, pixmaps
52 # use "svn export" to avoid copying ".svn"
53 svn export doc $pkgdir/$prefix/doc
54 svn export language $pkgdir/$prefix/language
55 svn export pixmaps $pkgdir/$prefix/pixmaps
58 install -D -m 755 doublecmd $pkgdir/$prefix
59 install -D -m 644 install/linux/doublecmd.xml doublecmd.ext.example \
60 editor.col pixmaps.txt twilight.col \
61 default.bar multiarc.ini \