summaryrefslogtreecommitdiffstats
path: root/extra/amule/Pkgfile
blob: 75e9786e47ea4a6eb4cf41f411b01f0128ea91b9 (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
# Description: Client toute platforme Edonkey
# URL: http://www.amule.org/
# Maintainer: Antti Nykänen, aon at iki dot fi
# Packager: Falcony, falcony at users dot sourceforge dot net
# Depends on: wxgtk, crypto++
# Run on:

name=amule
version=2.2.6
release=2
source=(http://download.berlios.de/amule/aMule-$version.tar.bz2\
	http://nutyx.meticul.eu/files/patchs/$name/amule-2.2.6-gcc-01.patch)

build() {
	cd aMule-$version
	patch -Np1 -i ../amule-2.2.6-gcc-01.patch
	export CFLAGS="${CFLAGS//-fstack-protector/}"
	export CXXFLAGS="${CXXFLAGS//-fstack-protector/}"
	./configure 	--prefix=/usr \
			--mandir=/usr/man \
                        --disable-embedded_crypto \
                        --enable-utf8-systray \
                        --enable-cas \
                        --enable-wxcas \
                        --enable-amule-daemon \
                        --enable-amulecmd \
                        --enable-amule-gui \
                        --enable-alc \
                        --enable-alcc \
                        --enable-webserver
	make
	make install DESTDIR=$PKG
	rm -rf $PKG/usr/{share/{doc,amule},man,lib,bin/autostart-xas}
}