blob: 60fc8c24ff1b4d22b96c28afc6cdf470865dfc33 (
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
45
46
47
48
49
50
|
# $Id: PKGBUILD 49135 2011-06-11 15:20:48Z cbrannon $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
pkgname=mldonkey
pkgver=3.0.7
pkgrel=3
pkgdesc="A multi-network P2P client"
arch=('i686' 'x86_64' 'mips64el')
url="http://mldonkey.sourceforge.net/"
license=('GPL')
depends=('desktop-file-utils' 'file' 'gd' 'bzip2')
makedepends=('lablgtk2' 'librsvg' 'ocaml')
optdepends=('librsvg: GUI support'
'libx11: GUI support')
backup=('etc/conf.d/mldonkey')
install=mldonkey.install
source=(http://downloads.sourceforge.net/sourceforge/mldonkey/$pkgname-$pkgver.tar.bz2
mldonkey-gcc46.patch
mldonkeyd
mldonkey.conf
mldonkey.desktop)
build() {
cd "$srcdir/$pkgname-$pkgver"
# Patch comes from upstream; will go away in later versions.
patch -p1 < "$srcdir/mldonkey-gcc46.patch"
./configure --prefix=/usr --enable-gui=newgui2
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname-$pkgver/icons/rsvg/type_source_normal.svg" \
"$pkgdir/usr/share/icons/mldonkey.svg"
install -Dm644 "$srcdir/mldonkey.desktop" \
"$pkgdir/usr/share/applications/mldonkey.desktop"
install -Dm755 "$srcdir/mldonkeyd" "$pkgdir/etc/rc.d/mldonkey"
install -Dm644 "$srcdir/mldonkey.conf" "$pkgdir/etc/conf.d/mldonkey"
}
md5sums=('162b78fc4e20335a8fe31d91e1656db2'
'c2bd99420ba5d48629b6823aae6bf127'
'75e4b6c7fb282f7de15a8d5478f3bd70'
'1f86d92db51c62cded0e6f3833057dee'
'1de3266caa49f82bee73ba891eea12cf')
|