aboutsummaryrefslogtreecommitdiffstats
path: root/testing/amule/APKBUILD
blob: ab8a7c8d9ddb31135f1db5783ee1d5a2d6ed75d1 (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
51
52
53
54
55
56
57
58
59
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=amule
pkgsvn=aMule-SVN-r
pkgver=10869
pkgrel=0
pkgdesc="An eMule-like client for the eD2k and Kademlia networks"
url="http://www.amule.org"
arch="all"
license="GPL2"
depends=""
depends_dev="crypto++-dev gd-dev geoip-dev libsm-dev libupnp-dev wxgtk2.8-dev"
makedepends="$depends_dev bison"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="http://amule.sourceforge.net/tarballs/${pkgsvn}${pkgver}.tar.bz2"

_builddir=$srcdir/${pkgsvn}${pkgver}
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--with-wxversion=2.8 \
		--enable-amule-daemon \
		--enable-amulecmd \
		--enable-amule-gui \
		--enable-webserver \
		--enable-alc \
		--enable-alcc \
		--enable-geoip \
		--enable-upnp \
		--disable-debug \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/charset.alias
}

md5sums="61e927a202be0ae8b337617df69840bd  aMule-SVN-r10869.tar.bz2"
sha256sums="855e48b8d8a0c65ff50771fc347635fe6d151107eb055fcbac90ef8742ad54fc  aMule-SVN-r10869.tar.bz2"
sha512sums="c7da224e12117e2dd26885e98c3fda9a5d3a3ae4229d2b7cbad5db799075337722b927706ef69f31aae5f7c898f1b8ac8366b498566c8234a4ea5dc065a07bca  aMule-SVN-r10869.tar.bz2"