1 # Maintainer: Gavin S <gav616(at)google mail(d0t)c0m>
6 pkgdesc='An eMule-like P2P client, without wxGTK GUI dependencies'
8 url="http://www.amule.org"
10 depends=('wxbase>=2.8.11' 'binutils' 'geoip')
11 makedepends=('git' 'crypto++' 'ccache')
12 conflicts=('amule' 'amule-adnza' 'amule-adnza-svn' 'amule-devel' \
13 'amule-dlp' 'amule-remote' 'amule-remote-cvs' 'amule-remote-upnp' \
14 'amule-remote-upnp-svn' 'amule-upnp')
15 provides=('amule=2.2.6')
16 source=('amule.conf' 'amuled')
17 md5sums=('ff70a948f71ec7af26652dfcf6432e7d'
18 '0e8f92cc39124ee3ce5cfc6708ab4373')
19 backup=('etc/conf.d/amule.conf')
21 options=('!docs' 'ccache')
23 _gitroot=git://repo.or.cz/amule.git
29 msg "* Warning: The first build will gather all the source from the git repo.. *"
30 msg "* ..this will create quite a large 'src' directory, 250 > 300 Megabytes. *"
31 msg "* If space in your '/var' directory is limited exit NOW ( Hold 'Ctrl' 'C') *"
32 msg "* All builds after the intial build will only ever download updated files *"
33 msg "* CCache is also used to only ever build updated files from the git grab. *"
38 msg "Connecting to the GIT server..."
43 if [[ -d $srcdir/$_gitname ]] ; then
47 msg "The local files are updated..."
55 msg "GIT checkout done."
60 msg "Starting make for: $pkgname"
64 if [[ -d $srcdir/$_gitname-build ]]; then
65 msg "Cleaning the previous build directory..."
66 rm -rf $srcdir/$_gitname-build
69 git clone $srcdir/$_gitname $srcdir/$_gitname-build
71 cd $srcdir/$_gitname-build
74 msg "Starting configure..."
78 ./configure --prefix=/usr \
79 --disable-monolithic \
80 --enable-amule-daemon \
90 --disable-plasmamule \
91 --disable-kde-in-home \
98 --with-toolkit=base || return 1
102 make DESTDIR=$pkgdir install || return 1
104 install -D -m755 $startdir/amuled $pkgdir/etc/rc.d/amuled
105 install -D -m644 $startdir/amule.conf $pkgdir/etc/conf.d/amule.conf