updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / multiget / PKGBUILD
blobc9067ec25ff796336e43352c3082ab668a4dcc49
1 # Maintainer: sausageandeggs <sausageandeggs@archlinux.us>
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
3 # Contributor: Allan McRae <mcrae_allan@hotmail.com>
5 pkgname=multiget
6 pkgver=3
7 pkgrel=2
8 pkgdesc="Easy to use GUI file downloader - svn version"
9 url="http://multiget.sourceforge.net"
10 license=('GPL')
11 depends=('wxgtk' 'libglade')
12 makedepends=('intltool' 'svn')
13 arch=('i686' 'x86_64')
14 _svntrunk=https://multiget.svn.sourceforge.net/svnroot/multiget
15 _svnmod=multiget
17 build() {
18 cd "$srcdir"
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
25   [ -d "$srcdir/$_svnmod-build" ] && rm -rf "$srcdir/$_svnmod-build"
26   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
27   cd "$srcdir/$_svnmod-build"
29   ./autogen.sh --prefix=/usr --docdir=/usr/share/doc/${_svnmod}
30   make
33 package() {
34   cd ${srcdir}/$_svnmod-build
35   make DESTDIR=${pkgdir} install
37   install -Dm644 ${srcdir}/${_svnmod}-build/data/multiget.desktop \
38       ${pkgdir}/usr/share/applications/multiget.desktop
39   install -Dm644 ${srcdir}/${_svnmod}-build/newicons/48/logo_48.xpm \
40       ${pkgdir}/usr/share/pixmaps/multiget.xpm
41   # Mv docs to avoid pkg conflict
42   mkdir -p ${pkgdir}/usr/share/doc/ #${_svnmod}
43   mv $pkgdir/usr/doc/${_svnmod} $pkgdir/usr/share/doc/${_svnmod}
44   rmdir $pkgdir/usr/doc