aboutsummaryrefslogtreecommitdiffstats
path: root/testing/amule/APKBUILD
blob: b4dabbcfb30ea9cc0ea2027f780e6f4eb1c95604 (plain) (blame)
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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=amule
_pkgname=aMule
pkgver=2.3.3
pkgrel=0
pkgdesc="eMule-like client for the eD2k and Kademlia networks"
url="https://www.amule.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="bison boost-dev crypto++-dev gd-dev geoip-dev libsm-dev libupnp-dev
	wxgtk3-dev"
options="!check" # unexpected end of file
subpackages="$pkgname-lang $pkgname-doc"
source="$_pkgname-$pkgver.tar.xz::https://downloads.sourceforge.net/project/amule/aMule/2.3.3/aMule-$pkgver.tar.xz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	./configure \
		CPPFLAGS="$CPPFLAGS -Wno-unused-local-typedefs" \
		CFLAGS="$CFLAGS -fPIC" \
		CXXFLAGS="$CXXFLAGS -fPIC" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-alc \
		--enable-alcc \
		--enable-amule-daemon \
		--enable-amule-gui \
		--enable-amulecmd \
		--enable-ccache \
		--enable-geoip \
		--enable-optimize \
		--enable-upnp \
		--enable-webserver \
		--disable-debug \
		--with-boost \
		--with-wx-config=wx-config-gtk3
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a5a80c5ddd1e107d92070c1d8e232c2762c4c54791abc067c739eef7c690062ed164dd7733808f80c762719261162aeb3d602308964dda2670a0bb059d87b74e  aMule-2.3.3.tar.xz"