wok annotate amule/receipt @ rev 25070

created recipe for alsa-utils-lang
author Hans-G?nter Theisgen
date Sat Jun 11 08:40:38 2022 +0100 (2022-06-11)
parents 5f6c5106b1f5
children 9b2b1195df6c
rev   line source
pankso@4078 1 # SliTaz package receipt.
pankso@4078 2
pankso@4078 3 PACKAGE="amule"
pascal@20458 4 VERSION="2.3.2"
pankso@4078 5 CATEGORY="network"
Hans-G?nter@20980 6 TAGS="p2p peer-to-peer fileshare"
pankso@4078 7 SHORT_DESC="An eMule-like client for the eD2k and Kademlia networks."
pankso@4078 8 MAINTAINER="pankso@slitaz.org"
pascal@15201 9 LICENSE="GPL2"
al@19275 10 WEB_SITE="http://www.amule.org/"
Hans-G?nter@20980 11
slaxemulator@11644 12 SOURCE="aMule"
pascal@11648 13 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@11648 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@4078 15
pascal@18798 16 DEPENDS="wxWidgets libupnp libbfd xorg-libXxf86vm cryptopp zlib"
pascal@15201 17 BUILD_DEPENDS="wxWidgets-dev libupnp-dev cryptopp zlib-dev"
pascal@15201 18
pascal@24340 19 # What is the latest version available today?
pascal@24340 20 current_version()
pascal@24340 21 {
pascal@24340 22 wget -O - https://sourceforge.net/projects/amule/files/aMule/ 2>/dev/null | \
pascal@24340 23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 24 sed '/scope="row/!d;s|.*/aMule/||;s|/.*||;q'
pascal@24340 25 }
pascal@24340 26
pankso@4078 27 # Rules to configure and make the package.
pankso@4078 28 compile_rules()
pankso@4078 29 {
mojo@21350 30 patch -p1 < $stuff/libupnp1.8.patch || exit 1
Hans-G?nter@24770 31 patch --strip=0 --input=$stuff/patches/MuleDebug.cpp-2.3.2 &&
mojo@21350 32
Hans-G?nter@20980 33 # What works for imule (see https://aur.archlinux.org/packages/imule)
Hans-G?nter@20980 34 # might work for amule also:
Hans-G?nter@20980 35 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \
Hans-G?nter@20980 36 src/ClientCreditsList.cpp
Hans-G?nter@20980 37
Hans-G?nter@24770 38 ./configure \
Hans-G?nter@24770 39 --prefix=/usr \
pankso@4078 40 $CONFIGURE_ARGS &&
gokhlayeh@11574 41 make $MAKEFLAGS &&
Hans-G?nter@24770 42 make install DESTDIR=$DESTDIR
Hans-G?nter@24770 43 ./configure \
Hans-G?nter@24770 44 --prefix=/usr \
Hans-G?nter@24770 45 --disable-monolithic \
Hans-G?nter@24770 46 --enable-amule-daemon \
Hans-G?nter@24770 47 --enable-amulecmd \
Hans-G?nter@24770 48 --enable-webserver \
pascal@20458 49 $CONFIGURE_ARGS &&
pascal@20458 50 make $MAKEFLAGS &&
Hans-G?nter@24770 51 make install DESTDIR=$DESTDIR
pankso@4078 52 }
pankso@4078 53
pankso@4078 54 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4078 55 genpkg_rules()
pankso@4078 56 {
slaxemulator@11644 57 mkdir -p $fs/usr/share
pascal@20459 58 rm -rf $install/usr/share/man/?? $install/usr/share/man/*_*
Hans-G?nter@24770 59 cp -a $install/usr/bin $fs/usr
Hans-G?nter@24770 60 cp -a $install/usr/share/amule $fs/usr/share
pankso@4078 61 # Remove unused files in this base package.
pankso@4078 62 rm $fs/usr/share/amule/skins/kde4.zip
pankso@4078 63 rm $fs/usr/share/amule/skins/gnome.zip
pankso@4078 64 }