aboutsummaryrefslogtreecommitdiffstats
path: root/testing/amule/APKBUILD
blob: 304072e18f2cbe0ce9a78d5a1f43e93231b4de1e (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=amule
_pkgname=aMule-SVN-r
pkgver=10990
pkgrel=0
pkgdesc="An eMule-like client for the eD2k and Kademlia networks"
url="http://www.amule.org"
arch="all"
license="GPL-2.0"
makedepends="bison crypto++-dev gd-dev geoip-dev libsm-dev libupnp-dev wxgtk2.8-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="http://amule.sourceforge.net/tarballs/${_pkgname}${pkgver}.tar.bz2"
builddir=$srcdir/${_pkgname}${pkgver}

prepare() {
	cd "$builddir"
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		CPPFLAGS="$CPPFLAGS -Wno-unused-local-typedefs" \
		CFLAGS="$CFLAGS -fPIC" \
		CXXFLAGS="$CXXFLAGS -fPIC" \
		--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 \
		--enable-ccache \
		--disable-debug
	make
}

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

sha512sums="1883426e3d0e2a58227a5a95efcb3193d207e6b6c2d6c9c256aa430debc601ade3551f86c7519e9942d440cc1e87672b4d1e7f2dc69a8bb50bef89ddcb3170f5  aMule-SVN-r10990.tar.bz2"