updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / leafget-svn / PKGBUILD
blob7a654e5d92b45a009d3e050e934ae36e12e097f1
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: lh <jarryson@gmail.com>
4 pkgname=leafget-svn
5 pkgver=49
6 pkgrel=1
7 pkgdesc="A GTK+ download manager"
8 arch=('i686' 'x86_64')
9 url="http://leafget.googlecode.com/" 
10 license=('GPL')
11 depends=('gtk2' 'libsigc++2.0')
12 makedepends=('intltool>=0.35.0' 'pkgconfig>=0.9.0' 'subversion')
13 options=('!docs')
14 provides=('leafget')
15 conflicts=('leafget')
17 _svntrunk=http://leafget.googlecode.com/svn/trunk
18 _svnmod=leafget
20 build() { 
21   cd "$srcdir"
23   if [[ -d $_svnmod/.svn ]]; then
24     cd $_svnmod && svn --config-dir ../ up -r $pkgver && cd ..
25   else
26     svn --config-dir ./ co $_svntrunk  -r $pkgver $_svnmod
27   fi
29   rm -rf $_svnmod-build
30   cp -r $_svnmod $_svnmod-build
31   cd $_svnmod-build
33   sed -i 's#gnome-talk.png#/usr/share/pixmaps/leafget.xpm#' $_svnmod.desktop.in
34   chmod +x configure
35   sh autogen.sh --prefix=/usr --docdir=/usr/share/doc
36   make ||return 1
37   make DESTDIR="$pkgdir" install
38   install -Dm644 data/shamrock.xpm "$pkgdir/usr/share/pixmaps/$_svnmod.xpm"