wok-current view amule/receipt @ rev 25642
Bump linux to 4.19.305, add linux-pae-ipv6
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Jan 17 12:05:22 2024 +0000 (11 months ago) |
parents | f2b7e5dd6de3 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="amule"
4 VERSION="2.3.3"
5 CATEGORY="network"
6 TAGS="fileshare p2p peer-to-peer"
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 # 2.3.2
32 # patch -p1 < $stuff/libupnp1.8.patch || exit 1
33 # patch --strip=0 --input=$stuff/patches/MuleDebug.cpp-2.3.2 &&
35 # What works for imule (see https://aur.archlinux.org/packages/imule)
36 # might work for amule also:
37 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \
38 src/ClientCreditsList.cpp
40 # Fixed libupnp API breakage.
41 sed -i -e 's|UpnpInit(ipAddress|UpnpInit2(0|' \
42 -e 's|UpnpInit)|UpnpInit2)|' \
43 -e 's|ipAddress = NULL|ipAddress|' \
44 -e 's|port = 0|port|' \
45 src/UPnPBase.cpp
47 ./configure \
48 --prefix=/usr \
49 --disable-debug \
50 $CONFIGURE_ARGS &&
51 make $MAKEFLAGS &&
52 make install DESTDIR=$DESTDIR &&
54 ./configure \
55 --prefix=/usr \
56 --disable-debug \
57 --disable-monolithic \
58 --enable-amule-daemon \
59 --enable-amulecmd \
60 --enable-webserver \
61 $CONFIGURE_ARGS &&
62 make $MAKEFLAGS &&
63 make install DESTDIR=$DESTDIR
64 }
66 # Rules to gen a SliTaz package suitable for Tazpkg.
67 genpkg_rules()
68 {
69 mkdir -p $fs/usr/share
71 # rm -rf $install/usr/share/man/??
72 # rm -rf $install/usr/share/man/*_*
73 cp -a $install/usr/bin $fs/usr
74 cp -a $install/usr/share/amule $fs/usr/share
76 # Remove unused files in this base package.
77 rm $fs/usr/share/amule/skins/kde4.zip
78 rm $fs/usr/share/amule/skins/gnome.zip
79 }