wok-6.x annotate amule/receipt @ rev 25492

Up foomatic-db (4.0-20221117)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 18 09:54:27 2022 +0000 (23 months ago)
parents 3bb5b852b821
children
rev   line source
pankso@4078 1 # SliTaz package receipt.
pankso@4078 2
pankso@4078 3 PACKAGE="amule"
pascal@20458 4 VERSION="2.3.2"
pankso@4078 5 CATEGORY="network"
Hans-G?nter@20980 6 TAGS="p2p peer-to-peer fileshare"
pankso@4078 7 SHORT_DESC="An eMule-like client for the eD2k and Kademlia networks."
pankso@4078 8 MAINTAINER="pankso@slitaz.org"
pascal@15201 9 LICENSE="GPL2"
al@19275 10 WEB_SITE="http://www.amule.org/"
Hans-G?nter@20980 11
slaxemulator@11644 12 SOURCE="aMule"
pascal@11648 13 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@11648 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@4078 15
pascal@18798 16 DEPENDS="wxWidgets libupnp libbfd xorg-libXxf86vm cryptopp zlib"
pascal@15201 17 BUILD_DEPENDS="wxWidgets-dev libupnp-dev cryptopp zlib-dev"
pascal@15201 18
pascal@24340 19 # What is the latest version available today?
pascal@24340 20 current_version()
pascal@24340 21 {
pascal@24340 22 wget -O - https://sourceforge.net/projects/amule/files/aMule/ 2>/dev/null | \
pascal@24340 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 24 sed '/scope="row/!d;s|.*/aMule/||;s|/.*||;q'
pascal@24340 25 }
pascal@24340 26
pankso@4078 27 # Rules to configure and make the package.
pankso@4078 28 compile_rules()
pankso@4078 29 {
mojo@21350 30 patch -p1 < $stuff/libupnp1.8.patch || exit 1
Hans-G?nter@24770 31 patch --strip=0 --input=$stuff/patches/MuleDebug.cpp-2.3.2 &&
mojo@21350 32
Hans-G?nter@20980 33 # What works for imule (see https://aur.archlinux.org/packages/imule)
Hans-G?nter@20980 34 # might work for amule also:
Hans-G?nter@20980 35 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \
Hans-G?nter@20980 36 src/ClientCreditsList.cpp
Hans-G?nter@20980 37
pascal@25341 38 # Fixed libupnp API breakage.
pascal@25341 39 sed -e 's|UpnpInit(ipAddress|UpnpInit2(0|' -e 's|UpnpInit)|UpnpInit2)|' \
pascal@25341 40 -e 's|ipAddress = NULL|ipAddress|' -e 's|port = 0|port|' \
pascal@25341 41 -i src/UPnPBase.cpp
pascal@25341 42
Hans-G?nter@24770 43 ./configure \
Hans-G?nter@24770 44 --prefix=/usr \
pankso@4078 45 $CONFIGURE_ARGS &&
gokhlayeh@11574 46 make $MAKEFLAGS &&
Hans-G?nter@24770 47 make install DESTDIR=$DESTDIR
Hans-G?nter@24770 48 ./configure \
Hans-G?nter@24770 49 --prefix=/usr \
Hans-G?nter@24770 50 --disable-monolithic \
Hans-G?nter@24770 51 --enable-amule-daemon \
Hans-G?nter@24770 52 --enable-amulecmd \
Hans-G?nter@24770 53 --enable-webserver \
pascal@20458 54 $CONFIGURE_ARGS &&
pascal@20458 55 make $MAKEFLAGS &&
Hans-G?nter@24770 56 make install DESTDIR=$DESTDIR
pankso@4078 57 }
pankso@4078 58
pankso@4078 59 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4078 60 genpkg_rules()
pankso@4078 61 {
slaxemulator@11644 62 mkdir -p $fs/usr/share
pascal@20459 63 rm -rf $install/usr/share/man/?? $install/usr/share/man/*_*
Hans-G?nter@24770 64 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24770 65 cp -a $install/usr/share/amule $fs/usr/share
pankso@4078 66 # Remove unused files in this base package.
pankso@4078 67 rm $fs/usr/share/amule/skins/kde4.zip
pankso@4078 68 rm $fs/usr/share/amule/skins/gnome.zip
pankso@4078 69 }