wok-current annotate amule/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | f2b7e5dd6de3 |
children |
rev | line source |
---|---|
pankso@4078 | 1 # SliTaz package receipt. |
pankso@4078 | 2 |
pankso@4078 | 3 PACKAGE="amule" |
Hans-G?nter@25568 | 4 VERSION="2.3.3" |
pankso@4078 | 5 CATEGORY="network" |
Hans-G?nter@25568 | 6 TAGS="fileshare p2p peer-to-peer" |
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 |
Hans-G?nter@25567 | 16 SUGGESTED="readline" # for amulecmd |
Hans-G?nter@25567 | 17 DEPENDS="cryptopp libbfd libupnp wxWidgets28 xorg-libXxf86vm zlib" |
Hans-G?nter@25567 | 18 BUILD_DEPENDS="cryptopp libupnp-dev wxWidgets28-dev zlib-dev" |
pascal@15201 | 19 |
pascal@24340 | 20 # What is the latest version available today? |
pascal@24340 | 21 current_version() |
pascal@24340 | 22 { |
pascal@24340 | 23 wget -O - https://sourceforge.net/projects/amule/files/aMule/ 2>/dev/null | \ |
pascal@24340 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 25 sed '/scope="row/!d;s|.*/aMule/||;s|/.*||;q' |
pascal@24340 | 26 } |
pascal@24340 | 27 |
pankso@4078 | 28 # Rules to configure and make the package. |
pankso@4078 | 29 compile_rules() |
pankso@4078 | 30 { |
Hans-G?nter@25568 | 31 # 2.3.2 |
Hans-G?nter@25568 | 32 # patch -p1 < $stuff/libupnp1.8.patch || exit 1 |
Hans-G?nter@25568 | 33 # patch --strip=0 --input=$stuff/patches/MuleDebug.cpp-2.3.2 && |
mojo@21350 | 34 |
Hans-G?nter@20980 | 35 # What works for imule (see https://aur.archlinux.org/packages/imule) |
Hans-G?nter@20980 | 36 # might work for amule also: |
Hans-G?nter@20980 | 37 sed -i 's/pubkey.DEREncode(asink);/pubkey.AccessMaterial().Save(asink);/g' \ |
Hans-G?nter@20980 | 38 src/ClientCreditsList.cpp |
Hans-G?nter@20980 | 39 |
pascal@25341 | 40 # Fixed libupnp API breakage. |
Hans-G?nter@25568 | 41 sed -i -e 's|UpnpInit(ipAddress|UpnpInit2(0|' \ |
Hans-G?nter@25568 | 42 -e 's|UpnpInit)|UpnpInit2)|' \ |
Hans-G?nter@25568 | 43 -e 's|ipAddress = NULL|ipAddress|' \ |
Hans-G?nter@25568 | 44 -e 's|port = 0|port|' \ |
Hans-G?nter@25568 | 45 src/UPnPBase.cpp |
pascal@25341 | 46 |
Hans-G?nter@24770 | 47 ./configure \ |
Hans-G?nter@24770 | 48 --prefix=/usr \ |
Hans-G?nter@25568 | 49 --disable-debug \ |
pankso@4078 | 50 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 51 make $MAKEFLAGS && |
Hans-G?nter@25567 | 52 make install DESTDIR=$DESTDIR && |
Hans-G?nter@25568 | 53 |
Hans-G?nter@24770 | 54 ./configure \ |
Hans-G?nter@24770 | 55 --prefix=/usr \ |
Hans-G?nter@25568 | 56 --disable-debug \ |
Hans-G?nter@24770 | 57 --disable-monolithic \ |
Hans-G?nter@24770 | 58 --enable-amule-daemon \ |
Hans-G?nter@24770 | 59 --enable-amulecmd \ |
Hans-G?nter@24770 | 60 --enable-webserver \ |
pascal@20458 | 61 $CONFIGURE_ARGS && |
pascal@20458 | 62 make $MAKEFLAGS && |
Hans-G?nter@24770 | 63 make install DESTDIR=$DESTDIR |
pankso@4078 | 64 } |
pankso@4078 | 65 |
pankso@4078 | 66 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4078 | 67 genpkg_rules() |
pankso@4078 | 68 { |
slaxemulator@11644 | 69 mkdir -p $fs/usr/share |
Hans-G?nter@25567 | 70 |
Hans-G?nter@25568 | 71 # rm -rf $install/usr/share/man/?? |
Hans-G?nter@25568 | 72 # rm -rf $install/usr/share/man/*_* |
Hans-G?nter@24770 | 73 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@24770 | 74 cp -a $install/usr/share/amule $fs/usr/share |
Hans-G?nter@25568 | 75 |
pankso@4078 | 76 # Remove unused files in this base package. |
Hans-G?nter@25568 | 77 rm $fs/usr/share/amule/skins/kde4.zip |
Hans-G?nter@25568 | 78 rm $fs/usr/share/amule/skins/gnome.zip |
pankso@4078 | 79 } |