wok view amule/receipt @ rev 24443
updated cryptopp (8.0.0 -> 8.6.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 14 07:50:21 2022 +0100 (2022-02-14) |
parents | e24deaebffc6 |
children | 3bb5b852b821 |
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
32 # What works for imule (see https://aur.archlinux.org/packages/imule)
33 # might work for amule also:
34 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \
35 src/ClientCreditsList.cpp
37 ./configure \
38 --prefix=/usr \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 ./configure \
43 --prefix=/usr \
44 --disable-monolithic \
45 --enable-amule-daemon \
46 --enable-amulecmd \
47 --enable-webserver \
48 $CONFIGURE_ARGS &&
49 make $MAKEFLAGS &&
50 make DESTDIR=$DESTDIR install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share
57 rm -rf $install/usr/share/man/?? $install/usr/share/man/*_*
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/share/amule $fs/usr/share
60 # Remove unused files in this base package.
61 rm $fs/usr/share/amule/skins/kde4.zip
62 rm $fs/usr/share/amule/skins/gnome.zip
63 }