wok view amule/receipt @ rev 25567

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