1 # Contributor: Pierluigi Picciau <pierluigi88@gmail.com>
5 pkgdesc="A multi-network P2P client. CVS version."
7 url="http://mldonkey.sourceforge.net/"
9 backup=(etc/mldonkey.conf)
10 depends=('desktop-file-utils' 'file' 'gd')
11 makedepends=('lablgtk2' 'librsvg' 'ocaml' 'cvs')
12 optdepends=('librsvg: necessary to use the GUI'
13 'libx11: necessary to use the GUI')
14 backup=('etc/conf.d/mldonkey' 'etc/mldonkey.conf')
15 install=mldonkey.install
16 source=(mldonkeyd mldonkey.conf mldonkey.desktop)
18 conflicts=('mldonkey')
19 install=mldonkey.install
20 md5sums=('cc768f9e0e13c3def61028044b7284c2' '53c06e623d9762f2a8f6af01066a11f5'
21 '1de3266caa49f82bee73ba891eea12cf')
23 _cvsroot=":pserver:anonymous@cvs.savannah.nongnu.org:/sources/mldonkey"
28 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
29 cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
32 msg "CVS checkout done or server timeout"
33 msg "Starting make..."
35 cp -r ../$_cvsmod ../$_cvsmod-build
38 ./configure --prefix=/usr --enable-gui=newgui2 --enable-ocamlver=3.10.2
40 make DESTDIR=$startdir/pkg install || return 1
42 install -D -m755 ../mldonkeyd $startdir/pkg/etc/rc.d/mldonkey
43 install -D -m644 ../mldonkey.conf $startdir/pkg/etc/mldonkey.conf
45 rm -r $startdir/src/$_cvsmod-build