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