wok-current view amule/receipt @ rev 25429

updated xbindkeys (1.8.6 -> 1.8.7)
author Hans-G?nter Theisgen
date Thu Aug 18 17:19:07 2022 +0100 (2022-08-18)
parents 3bb5b852b821
children f2b7e5dd6de3
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 DEPENDS="wxWidgets libupnp libbfd xorg-libXxf86vm cryptopp zlib"
17 BUILD_DEPENDS="wxWidgets-dev libupnp-dev cryptopp zlib-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/amule/files/aMule/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*/aMule/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 patch -p1 < $stuff/libupnp1.8.patch || exit 1
31 patch --strip=0 --input=$stuff/patches/MuleDebug.cpp-2.3.2 &&
33 # What works for imule (see https://aur.archlinux.org/packages/imule)
34 # might work for amule also:
35 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \
36 src/ClientCreditsList.cpp
38 # Fixed libupnp API breakage.
39 sed -e 's|UpnpInit(ipAddress|UpnpInit2(0|' -e 's|UpnpInit)|UpnpInit2)|' \
40 -e 's|ipAddress = NULL|ipAddress|' -e 's|port = 0|port|' \
41 -i src/UPnPBase.cpp
43 ./configure \
44 --prefix=/usr \
45 $CONFIGURE_ARGS &&
46 make $MAKEFLAGS &&
47 make install DESTDIR=$DESTDIR
48 ./configure \
49 --prefix=/usr \
50 --disable-monolithic \
51 --enable-amule-daemon \
52 --enable-amulecmd \
53 --enable-webserver \
54 $CONFIGURE_ARGS &&
55 make $MAKEFLAGS &&
56 make install DESTDIR=$DESTDIR
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 mkdir -p $fs/usr/share
63 rm -rf $install/usr/share/man/?? $install/usr/share/man/*_*
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/share/amule $fs/usr/share
66 # Remove unused files in this base package.
67 rm $fs/usr/share/amule/skins/kde4.zip
68 rm $fs/usr/share/amule/skins/gnome.zip
69 }