updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / amule-base-git / PKGBUILD
blob9ca476e21d8cf65e1772919768fbb61ffbf551ef
1 # Maintainer: Gavin S <gav616(at)google mail(d0t)c0m>
3 pkgname=amule-base-git
4 pkgver=20100429
5 pkgrel=4
6 pkgdesc='An eMule-like P2P client, without wxGTK GUI dependencies'
7 arch=('i686' 'x86_64')
8 url="http://www.amule.org"
9 license=('GPL')
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')
20 install=amule.install
21 options=('!docs' 'ccache')
23 _gitroot=git://repo.or.cz/amule.git
24 _gitname=amule
26 build()
28     msg
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.  *"
34     msg
35     sleep 15
36     
37     msg
38     msg "Connecting to the GIT server..."
39     msg
40     sleep 2
41     
42     cd $srcdir/
43     if [[ -d $srcdir/$_gitname ]] ; then
44         cd $_gitname
45         git pull origin
46     msg
47     msg "The local files are updated..."
48     msg
49         sleep 2
50     else
51         git clone $_gitroot
52     fi
53     
54     msg
55     msg "GIT checkout done."
56     msg
57     sleep 2
58     
59     msg
60     msg "Starting make for: $pkgname"
61     msg
62     sleep 2
63     
64     if [[ -d $srcdir/$_gitname-build ]]; then
65        msg "Cleaning the previous build directory..." 
66        rm -rf $srcdir/$_gitname-build
67     fi
69     git clone $srcdir/$_gitname $srcdir/$_gitname-build
70     
71     cd $srcdir/$_gitname-build
72     
73     msg  
74     msg "Starting configure..."
75     msg
76     sleep 2
78     ./configure --prefix=/usr \
79         --disable-monolithic \
80         --enable-amule-daemon \
81         --enable-amulecmd \
82         --enable-webserver \
83         --disable-amule-gui \
84         --disable-cas \
85         --disable-wxcas \
86         --disable-ed2k \
87         --disable-alc \
88         --disable-alcc \
89         --disable-xas \
90         --disable-plasmamule \
91         --disable-kde-in-home \
92         --enable-geoip \
93         --disable-upnp \
94         --disable-mmap \
95         --disable-nls \
96         --disable-debug \
97         --enable-ccache \
98         --with-toolkit=base || return 1
100     make || return 1
102     make DESTDIR=$pkgdir install || return 1
103     
104  install -D -m755 $startdir/amuled $pkgdir/etc/rc.d/amuled
105  install -D -m644 $startdir/amule.conf $pkgdir/etc/conf.d/amule.conf