contrib/mldonkey/Pkgfile

33 lines
939 B
Plaintext
Raw Normal View History

# Description: Multi-platform multi-network peer-to-peer client.
# URL: http://mldonkey.sourceforge.net/
2009-05-16 01:44:26 +02:00
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Jose V Beneyto, sepen at crux dot nu
2017-04-11 19:41:49 +02:00
# Depends on: bzip2
2009-05-16 01:44:26 +02:00
# Nice to have: libgd
2006-11-22 02:40:25 +01:00
name=mldonkey
2017-04-11 19:41:49 +02:00
version=3.1.5
release=1
source=(http://download.sourceforge.net/$name/$name-$version.tar.bz2 \
mlnetd)
2006-11-22 02:40:25 +01:00
build() {
2017-04-11 19:41:49 +02:00
local ocamlsrc="$PKGMK_SOURCE_DIR/ocaml-3.12.0.tar.gz"
if [ ! -f "$ocamlsrc" ]; then
wget -c -O "$ocamlsrc".partial http://caml.inria.fr/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz
mv "$ocamlsrc".partial "$ocamlsrc"
fi
cd $name-$version
2017-04-11 19:41:49 +02:00
ln -s "$ocamlsrc" patches/
./configure --prefix=/usr \
2007-06-22 17:00:12 +02:00
--disable-gui \
2010-09-27 09:14:32 +02:00
--disable-bittorrent \
2017-04-11 19:41:49 +02:00
--enable-batch \
2007-06-22 17:00:12 +02:00
--disable-debug
make
make DESTDIR=$PKG install
install -d $PKG/var/mlnet
install -D -m 0755 $SRC/mlnetd $PKG/etc/rc.d/mlnetd
2006-11-22 02:40:25 +01:00
}