aboutsummaryrefslogtreecommitdiffstats
path: root/testing/amule/APKBUILD
blob: 7f75866dca6d9da05b52bde505c9028040f9b1c3 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=amule
_commit=eba0b7ac753680264a77b3dff12f82665ff180d4
pkgver=11066
pkgrel=1
pkgdesc="eMule-like client for the eD2k and Kademlia networks"
url="http://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"
subpackages="$pkgname-lang $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://repo.or.cz/amule.git/snapshot/$_commit.tar.gz"

builddir="$srcdir/$pkgname-${_commit:0:7}"

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-amule-daemon \
		--enable-amulecmd \
		--enable-amule-gui \
		--enable-webserver \
		--enable-alc \
		--enable-alcc \
		--enable-geoip \
		--enable-upnp \
		--enable-ccache \
		--disable-debug \
		--with-boost \
		--with-wx-config=wx-config-gtk3
	make
}

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

sha512sums="e4e42ba81852faa818f6ece0ed54d1c3a79684eb5e9c892ca99dc07d8eb8639dc7ea9dac31d6d20302f8b48f2f2a39780e4e7fa67c0a8dc597b16e7fcc28c7dd  amule-11066.tar.gz"