wok-current annotate transmission/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 4b64f58fe9fa |
children | d75c910db906 |
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@15836 | 30 touch third-party/miniupnp/VERSION |
devl547@17661 | 31 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections \ |
devl547@17661 | 32 -Wl,--gc-sections" |
Hans-G?nter@22047 | 33 |
Hans-G?nter@22047 | 34 ./autogen.sh && |
Hans-G?nter@22047 | 35 ./configure \ |
Hans-G?nter@22047 | 36 --prefix=/usr \ |
Hans-G?nter@22047 | 37 --enable-cli \ |
Hans-G?nter@22047 | 38 --enable-lightweight \ |
pascal@18942 | 39 $CONFIGURE_ARGS && |
Hans-G?nter@22047 | 40 make && |
Hans-G?nter@22047 | 41 make install && |
Hans-G?nter@22047 | 42 |
psychomaniak@17109 | 43 rm -rf $install/usr/share/applications $src/macosx |
Hans-G?nter@22047 | 44 |
psychomaniak@17109 | 45 #For gcc v4.7+ |
psychomaniak@17109 | 46 #cd $src/qt && qmake qtr.pro |
psychomaniak@17109 | 47 #make && make INSTALL_ROOT=$install install |
pankso@41 | 48 } |
pankso@41 | 49 |
pankso@41 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@41 | 51 genpkg_rules() |
pankso@41 | 52 { |
Hans-G?nter@22047 | 53 mkdir -p $fs/usr/bin |
Hans-G?nter@22047 | 54 mkdir -p $fs/usr/share/applications |
slaxemulator@15834 | 55 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE} |
pankso@551 | 56 } |
pankso@551 | 57 |
pankso@551 | 58 # Remove old packages name |
pankso@551 | 59 post_install() |
pankso@551 | 60 { |
pascal@18730 | 61 rm -f "$1/usr/bin/transmission-gtk" |
pascal@18730 | 62 rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop" |
pankso@41 | 63 } |