updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / amule-remotegui-git / PKGBUILD
bloba3454aef4d42bbbfdf21f1b89cf3a5cc3ebf3120
1 # Maintainer: Gavin <gav616 at gmail dot com>
3 pkgname=amule-remotegui-git
4 pkgver=20101009
5 pkgrel=1
6 pkgdesc='An eMule-like P2P client, focusing on the bleeding edge experimental aMuleGUI and aMuleD'
7 arch=('i686' 'x86_64')
8 url="http://www.amule.org"
9 license=('GPL')
10 depends=('wxgtk>=2.8.10.1' 'binutils' 'geoip')
11 makedepends=('git' 'crypto++' 'ccache')
12 conflicts=('amule' 'amule-adnza' 'amule-adnza-svn' 'amule-devel' 'amule-dlp' \
13            'amule-dlp-gcc4.5' '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 backup=('etc/conf.d/amule.conf')
18 install='amule.install'
19 options=('!docs' 'ccache')
20 md5sums=('ff70a948f71ec7af26652dfcf6432e7d'
21          'a0a4e769e859a1c6680d420d57dba111')
23 _gitroot="git://repo.or.cz/amule.git"
24 _gitname="amule"
26 build() {
27   echo -e '\E[37;44m'"\033[1m
28   If using 'makepkg' please don't use the cleanup option (makepkg -c),
29   it will delete the build directory which defeats the object of using GIT.\033[0m"
30   sleep 10
31   
32   cd $startdir/src
33   msg "Connecting to 'repo.or.cz' GIT server...."
35   if [ -d $startdir/src/$_gitname ] ; then
36   cd $_gitname && git-pull origin
37   msg "The local files are updated."
38   else
39   git clone --depth 1 $_gitroot $_gitname
40   fi
41   
42   msg "GIT checkout done or server timeout"
43   msg "Starting make..."
45   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
46   cd $startdir/src/$_gitname-build
48     ./configure --prefix=/usr \
49         --disable-monolithic \
50         --enable-amule-daemon \
51         --enable-amulecmd \
52         --disable-webserver \
53         --enable-amule-gui \
54         --disable-cas \
55         --disable-wxcas \
56         --disable-ed2k \
57         --disable-alc \
58         --disable-alcc \
59         --disable-xas \
60         --disable-plasmamule \
61         --disable-kde-in-home \
62         --enable-geoip \
63         --disable-upnp \
64         --enable-mmap \
65         --disable-nls \
66         --disable-debug \
67         --enable-ccache || return 1
69     make || return 1
70     
71     make DESTDIR=$pkgdir install || return 1
72     
73  install -D -m755 $startdir/amuled $pkgdir/etc/rc.d/amuled
74  install -D -m644 $startdir/amule.conf $pkgdir/etc/conf.d/amule.conf