wok-current annotate transmission/receipt @ rev 25637
Add miss new packages (Py3Qt-x11-gpl and pycairo118)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 15 22:12:34 2024 +0000 (11 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
pankso@41 | 1 # SliTaz package receipt. |
pankso@41 | 2 |
pankso@41 | 3 PACKAGE="transmission" |
Hans-G?nter@22047 | 4 VERSION="2.94" |
pankso@203 | 5 CATEGORY="network" |
Hans-G?nter@22047 | 6 TAGS="torrent" |
pankso@41 | 7 SHORT_DESC="Light and easy to use BitTorrent client." |
pankso@41 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
pascal@22829 | 10 WEB_SITE="https://web.archive.org/web/20200122162854/https://transmissionbt.com/" |
Hans-G?nter@22047 | 11 |
pankso@11956 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22048 | 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@41 | 14 |
Hans-G?nter@22047 | 15 SUGGESTED="transmission-cli transmission-daemon transmission-web" |
Hans-G?nter@22047 | 16 DEPENDS="dbus dbus-glib gtk+3 libcurl libevent libgio \ |
Hans-G?nter@22047 | 17 libnotify libssl xorg-libXdamage" |
pascal@22830 | 18 BUILD_DEPENDS="libtool curl curl-dev dbus-dev dbus-glib-dev expat-dev |
Hans-G?nter@22047 | 19 gettext gtk+3-dev intltool libevent-dev openssl-dev tar" |
slaxemulator@10109 | 20 |
pascal@24055 | 21 current_version() |
pascal@24055 | 22 { |
pascal@24055 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 25 } |
pascal@24055 | 26 |
pankso@41 | 27 # Rules to configure and make the package. |
pankso@41 | 28 compile_rules() |
pankso@41 | 29 { |
pascal@24780 | 30 # autoconf 2.70 bug workaround |
pascal@24780 | 31 sed -e '/IT_PROG_INTLTOOL\]/d' \ |
pascal@24780 | 32 -e '/enable-nls requires intltool/d' \ |
pascal@24780 | 33 -e 's| *\[\(IT_PROG_INTLTOOL(.*)\).*|\1|' \ |
pascal@24780 | 34 -i configure.ac |
pascal@24780 | 35 |
pascal@15836 | 36 touch third-party/miniupnp/VERSION |
devl547@17661 | 37 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections \ |
devl547@17661 | 38 -Wl,--gc-sections" |
Hans-G?nter@22047 | 39 |
Hans-G?nter@22047 | 40 ./autogen.sh && |
Hans-G?nter@22047 | 41 ./configure \ |
Hans-G?nter@22047 | 42 --prefix=/usr \ |
Hans-G?nter@22047 | 43 --enable-cli \ |
Hans-G?nter@22047 | 44 --enable-lightweight \ |
pascal@18942 | 45 $CONFIGURE_ARGS && |
Hans-G?nter@22047 | 46 make && |
Hans-G?nter@22047 | 47 make install && |
Hans-G?nter@22047 | 48 |
psychomaniak@17109 | 49 rm -rf $install/usr/share/applications $src/macosx |
Hans-G?nter@22047 | 50 |
psychomaniak@17109 | 51 #For gcc v4.7+ |
psychomaniak@17109 | 52 #cd $src/qt && qmake qtr.pro |
psychomaniak@17109 | 53 #make && make INSTALL_ROOT=$install install |
pankso@41 | 54 } |
pankso@41 | 55 |
pankso@41 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@41 | 57 genpkg_rules() |
pankso@41 | 58 { |
Hans-G?nter@22047 | 59 mkdir -p $fs/usr/bin |
Hans-G?nter@22047 | 60 mkdir -p $fs/usr/share/applications |
slaxemulator@15834 | 61 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE} |
pankso@551 | 62 } |
pankso@551 | 63 |
pankso@551 | 64 # Remove old packages name |
pankso@551 | 65 post_install() |
pankso@551 | 66 { |
pascal@18730 | 67 rm -f "$1/usr/bin/transmission-gtk" |
pascal@18730 | 68 rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop" |
pankso@41 | 69 } |