wok-6.x annotate transmission/receipt @ rev 17107
transmission: qmake
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Mon Sep 01 17:26:36 2014 +0200 (2014-09-01) |
parents | ddfd839f2135 |
children | dcfde3ae6114 |
rev | line source |
---|---|
pankso@41 | 1 # SliTaz package receipt. |
pankso@41 | 2 |
pankso@41 | 3 PACKAGE="transmission" |
slaxemulator@15814 | 4 VERSION="2.82" |
pankso@203 | 5 CATEGORY="network" |
pankso@41 | 6 SHORT_DESC="Light and easy to use BitTorrent client." |
pankso@41 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
erjo@4784 | 9 SUGGESTED="transmission-web transmission-cli transmission-daemon" |
pankso@11956 | 10 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@1739 | 11 WEB_SITE="http://www.transmissionbt.com/" |
slaxemulator@15832 | 12 WGET_URL="https://transmission.cachefly.net/$TARBALL" |
jozee@4973 | 13 TAGS="torrent" |
pankso@41 | 14 |
slaxemulator@15816 | 15 DEPENDS="gtk+3 libssl libcurl libgio dbus dbus-glib \ |
slaxemulator@15816 | 16 xorg-libXdamage libnotify libevent" |
psychomaniak@17107 | 17 BUILD_DEPENDS="gtk+3-dev openssl-dev curl-dev curl intltool \ |
psychomaniak@17107 | 18 expat-dev gettext dbus-dev dbus-glib-dev libevent-dev wget tar \ |
psychomaniak@17107 | 19 qmake Qt4-dev" |
slaxemulator@10109 | 20 |
pankso@41 | 21 # Rules to configure and make the package. |
pankso@41 | 22 compile_rules() |
pankso@41 | 23 { |
pankso@41 | 24 cd $src |
pascal@15836 | 25 touch third-party/miniupnp/VERSION |
pankso@551 | 26 ./configure \ |
pankso@551 | 27 --prefix=/usr \ |
pankso@11956 | 28 --enable-lightweight \ |
erjo@2988 | 29 $CONFIGURE_ARGS && \ |
pankso@11956 | 30 make && make install && |
pankso@11956 | 31 rm -rf $install/usr/share/applications |
psychomaniak@17107 | 32 |
psychomaniak@17107 | 33 cd $src/qt && qmake qtr.pro |
psychomaniak@17107 | 34 make && make INSTALL_ROOT=$install install |
pankso@41 | 35 } |
pankso@41 | 36 |
pankso@41 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@41 | 38 genpkg_rules() |
pankso@41 | 39 { |
pascal@11623 | 40 mkdir -p $fs/usr/bin $fs/usr/share/applications |
slaxemulator@15834 | 41 cp -a $install/usr/bin/${PACKAGE}-gtk $fs/usr/bin/${PACKAGE} |
pankso@551 | 42 } |
pankso@551 | 43 |
pankso@551 | 44 # Remove old packages name |
pankso@551 | 45 post_install() |
pankso@551 | 46 { |
pascal@1137 | 47 rm -f $1/usr/bin/transmission-gtk |
slaxemulator@6617 | 48 rm -f $1/usr/share/applications/${PACKAGE}-gtk.desktop |
mojo@16979 | 49 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas |
pankso@41 | 50 } |
mojo@16979 | 51 |
mojo@16979 | 52 post_remove() |
mojo@16979 | 53 { |
mojo@16979 | 54 echo "Processing post-remove commands..." |
mojo@16979 | 55 chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas |
mojo@16979 | 56 } |