wok view amule/receipt @ rev 25217
updated python-pdfkit (0.6.1 -> 1.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:33:13 2022 +0100 (2022-07-13) |
parents | 5f6c5106b1f5 |
children | 9b2b1195df6c |
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 ./configure \
39 --prefix=/usr \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make install DESTDIR=$DESTDIR
43 ./configure \
44 --prefix=/usr \
45 --disable-monolithic \
46 --enable-amule-daemon \
47 --enable-amulecmd \
48 --enable-webserver \
49 $CONFIGURE_ARGS &&
50 make $MAKEFLAGS &&
51 make install DESTDIR=$DESTDIR
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
58 rm -rf $install/usr/share/man/?? $install/usr/share/man/*_*
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/share/amule $fs/usr/share
61 # Remove unused files in this base package.
62 rm $fs/usr/share/amule/skins/kde4.zip
63 rm $fs/usr/share/amule/skins/gnome.zip
64 }