wok-6.x view transmission/receipt @ rev 25266
gdk-pixbuf: added dependency libjpeg
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 15 13:56:48 2022 +0100 (2022-07-15) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="transmission"
4 VERSION="2.94"
5 CATEGORY="network"
6 TAGS="torrent"
7 SHORT_DESC="Light and easy to use BitTorrent client."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://web.archive.org/web/20200122162854/https://transmissionbt.com/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
15 SUGGESTED="transmission-cli transmission-daemon transmission-web"
16 DEPENDS="dbus dbus-glib gtk+3 libcurl libevent libgio \
17 libnotify libssl xorg-libXdamage"
18 BUILD_DEPENDS="libtool curl curl-dev dbus-dev dbus-glib-dev expat-dev
19 gettext gtk+3-dev intltool libevent-dev openssl-dev tar"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # autoconf 2.70 bug workaround
31 sed -e '/IT_PROG_INTLTOOL\]/d' \
32 -e '/enable-nls requires intltool/d' \
33 -e 's| *\[\(IT_PROG_INTLTOOL(.*)\).*|\1|' \
34 -i configure.ac
36 touch third-party/miniupnp/VERSION
37 CFLAGS="$CFLAGS -fdata-sections -ffunction-sections \
38 -Wl,--gc-sections"
40 ./autogen.sh &&
41 ./configure \
42 --prefix=/usr \
43 --enable-cli \
44 --enable-lightweight \
45 $CONFIGURE_ARGS &&
46 make &&
47 make install &&
49 rm -rf $install/usr/share/applications $src/macosx
51 #For gcc v4.7+
52 #cd $src/qt && qmake qtr.pro
53 #make && make INSTALL_ROOT=$install install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/bin
60 mkdir -p $fs/usr/share/applications
61 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE}
62 }
64 # Remove old packages name
65 post_install()
66 {
67 rm -f "$1/usr/bin/transmission-gtk"
68 rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop"
69 }