summaryrefslogtreecommitdiff
path: root/community/multiget/PKGBUILD
blob: d5d80bb5e4d20d54691c885525518b0ec25243f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 59362 2011-11-23 20:36:41Z andrea $
# Maintainer:
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Allan McRae <mcrae_allan@hotmail.com>

pkgname=multiget
pkgver=3
pkgrel=1
pkgdesc="Easy to use GUI file downloader - svn version"
url="http://multiget.sourceforge.net"
license=('GPL')
depends=('wxgtk' 'libglade')
makedepends=('intltool' 'svn')
arch=('i686' 'x86_64' 'mips64el')
_svntrunk=https://multiget.svn.sourceforge.net/svnroot/multiget
_svnmod=multiget

build() {
cd "$srcdir"

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi
  [ -d "$srcdir/$_svnmod-build" ] && rm -rf "$srcdir/$_svnmod-build"
  cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  ./autogen.sh --prefix=/usr --docdir=/usr/share/doc/${_svnmod}
  make
}

package() {
  cd ${srcdir}/$_svnmod-build
  make DESTDIR=${pkgdir} install

  install -Dm644 ${srcdir}/${_svnmod}-build/data/multiget.desktop \
      ${pkgdir}/usr/share/applications/multiget.desktop
  install -Dm644 ${srcdir}/${_svnmod}-build/newicons/48/logo_48.xpm \
      ${pkgdir}/usr/share/pixmaps/multiget.xpm
  mv $pkgdir/usr/doc/${_svnmod} $pkgdir/usr/share/doc
  rmdir $pkgdir/usr/doc
}