blob: 2d906b7ad4442525766fc15817ea07651b41ddc9 (
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
|
# Contributor: Allan McRae <mcrae_allan@hotmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=multiget
pkgver=3
pkgrel=1
pkgdesc="Easy to use GUI file downloader - svn version"
url="http://multiget.sourceforge.net"
license=('GPL')
depends=('wxgtk')
makedepends=('intltool' 'svn')
arch=('i686' 'x86_64')
source=()
md5sums=()
_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
}
|