updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / doublecmd-svn / PKGBUILD
blob16848ea996858ef16690dd6c71329d8e0079a1e4
1 # Maintainer: Stanislav GE <ginermail@gmail.com>
3 pkgname=doublecmd-svn
4 pkgver=3793
5 pkgrel=1
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."
7 arch=(i686 x86_64)
8 url=http://doublecmd.sourceforge.net
9 license=(GPL2)
10 makedepends=('lazarus>=0.9.29' 'fpc>=2.2.4' 'subversion')
11 _svntrunk=http://doublecmd.svn.sourceforge.net/svnroot/doublecmd/trunk
12 _svnmod=doublecmd
14 build() {
15         # get source
16         cd $srcdir
17         if [ -d $_svnmod/.svn ]; then
18                 (cd $_svnmod && svn up -r $pkgver)
19         else
20                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
21         fi
22         msg "SVN checkout done or server timeout"
23         msg "Starting make..."
24         cp -r $_svnmod $_svnmod-build
25         cd $_svnmod-build
27         # build
28         cd $srcdir/$_svnmod-build
29         ./build.sh all
31         # create doublecmd link to /usr/bin
32         prefix=/opt/doublecmd
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
40         # install plugins
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 \
46                         ; do
47                 dest_plugin_path=$(echo $pkgdir/$prefix/$plugin|sed 's/\/lib\//\//')
48                 install -D -m 644 $plugin $dest_plugin_path
49         done
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
57         # install bin, misc
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 \
62                 $pkgdir/$prefix