updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / karia2-svn / PKGBUILD
blob4abd0b39b84abd18f5f4387cbcb2503b3bc24dcf
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Adam Lloyd <lloyda2 (at) rpi (dot) edu>
3 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgname=karia2-svn
6 pkgver=183
7 pkgrel=1
8 pkgdesc="QT4 interface for aria2 download mananger"
9 arch=('i686' 'x86_64')
10 url="http://sourceforge.net/projects/karia2"
11 license=('GPL')
12 depends=('qt' 'aria2' 'libxtst')
13 makedepends=('subversion')
15 _svntrunk=https://karia2.svn.sourceforge.net/svnroot/karia2/trunk
16 _svnmod=karia2
18 build() {
19   cd $srcdir
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     export LC_CTYPE="en_US.UTF-8"
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   [ -d $_svnmod-build ] && rm -r $_svnmod-build
32   cp -r $_svnmod $_svnmod-build
33   cd $_svnmod-build
35   qmake
36   sed -i 's;/opt/karia2/resume;/usr/bin/karia2-resume;' karia2.cpp
37   make PREFIX=/usr
40 package() {
41   cd $srcdir/$_svnmod-build
42   install -Dm755 bin/karia2 $pkgdir/usr/bin/karia2
43   install -d $pkgdir/usr/share/karia2/images
44   install -Dm644 images/wood{background,button}.png \
45     $pkgdir/usr/share/karia2/images/