updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / doublecmd-gtk2-bin-nightly / PKGBUILD
blob6af129b08d720abb7f6d28855a1c181fe942cd10
2 pkgname=doublecmd-gtk2-bin-nightly
3 pkgver=0.5.2
4 _pkgver=beta
5 pkgrel=2
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')
8 url='http://doublecmd.sourceforge.net'
9 depends=('gtk2')
10 optdepends=('lua: scripting' 'p7zip: support for 7zip archives' 'libunrar: support for rar archives')
11 provides=('doublecmd')
12 conflicts=('doublecmd-svn' 'doublecmd-ppa')
13 replaces=('doublecmd' 'doublecmd-svn')
14 license=('GPL2')
15 install=doublecmd-gtk2-bin-nightly.install
16 source=('doublecmd.desktop')
17 md5sums=('da7d4b1403dcb2ee52c83d32c82caf7a')
19 case ${CARCH} in
20   i686)
21     source=(${source[@]} "http://downloads.sourceforge.net/project/doublecmd/DC%20for%20Linux%2032%20bit/Double%20Commander%20${pkgver}%20beta/doublecmd-${pkgver}.gtk2.i386.tar.xz")
22     md5sums=(${md5sums[@]} '5cf801d0a844543816e7806b71ec7143')
23     ;;
24   x86_64)
25     source=(${source[@]} "http://downloads.sourceforge.net/project/doublecmd/DC%20for%20Linux%2064%20bit/Double%20Commander%20${pkgver}%20beta/doublecmd-${pkgver}.gtk2.x86_64.tar.xz")
26     md5sums=(${md5sums[@]} '8c996631f75b866d5e93c1bf1eeba20e')
27     ;;
28 esac
30 build() {
31     cd $srcdir
32     
33     # some problem with last nightly
34     #msg "Check revision..."
36     #wget -q http://www.firebirdsql.su/dc/
37     #_pkgver=$(cat index.html |grep '.gtk2.i386.tar.bz2>'|cut -f5  -d'.'|cut -c2-5)
38     
39     #echo "Last revision" $_pkgver
41     #case ${CARCH} in
42     #   i686)
43     #      FX_SRC="doublecmd.0.5.5.r${_pkgver}.gtk2.i386.tar.bz2"
44     #      ;;
45     #   x86_64)
46     #      FX_SRC="doublecmd.0.5.5.r${_pkgver}.gtk2.x86_64.tar.bz2"
47     #      ;;
48     #   esac
50     #FX_SRC_URI="http://www.firebirdsql.su/dc/${FX_SRC}"
52     prefix=/opt/doublecmd
54     install -d -m755 "${pkgdir}/${prefix}"
56     cp -r doublecmd "${pkgdir}/opt"
57     sed -i -e 's/<UseConfigInProgramDir>True/<UseConfigInProgramDir>False/' "${pkgdir}/${prefix}"/doublecmd.xml
59     rm $pkgdir/$prefix/libunrar.so
61     # create doublecmd link to /usr/bin
62     mkdir -p $pkgdir/usr/bin
63     ln -s $prefix/doublecmd $pkgdir/usr/bin/doublecmd
65     # install desktop file and icon
66     install -Dm644 doublecmd.desktop $pkgdir/usr/share/applications/doublecmd.desktop
67     install -Dm644 doublecmd/doublecmd.png $pkgdir/usr/share/pixmaps/doublecmd.png
69     # install nightly
71     #msg "Downloading..."
72     #cd "${startdir}"
73     #wget -N ${FX_SRC_URI}
74     #msg "Extracting..."
75     #cd "${pkgdir}/${prefix}"
76     #tar -xjf "${startdir}/${FX_SRC}"
78     # Fix owner:group (???)
79     #chown -R root:root $pkgdir/$prefix
81     #true && pkgver=$_pkgver
82     #msg "Packaging..."