2009-08-16 19:54:55 +02:00
|
|
|
# Template file for 'transmission'
|
|
|
|
pkgname=transmission
|
2014-07-10 00:58:28 +02:00
|
|
|
version=2.84
|
2012-12-21 08:54:26 +01:00
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-11-15 20:03:05 +01:00
|
|
|
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp"
|
2013-04-14 15:09:59 +02:00
|
|
|
hostmakedepends="pkg-config intltool"
|
2014-03-15 09:51:24 +01:00
|
|
|
makedepends="zlib-devel openssl-devel dbus-glib-devel libcurl-devel libevent-devel gtk+3-devel"
|
2009-08-16 19:54:55 +02:00
|
|
|
short_desc="A fast, easy, and free BitTorrent client"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-18 21:04:21 +02:00
|
|
|
homepage="http://www.transmissionbt.com/"
|
|
|
|
license="MIT, GPL-2"
|
2012-12-05 11:00:18 +01:00
|
|
|
distfiles="http://download.transmissionbt.com/files/$pkgname-$version.tar.xz"
|
2014-07-10 00:58:28 +02:00
|
|
|
checksum=a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb
|
2012-12-05 10:46:29 +01:00
|
|
|
|
2014-03-15 09:51:24 +01:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
makedepends+=" qt-devel"
|
|
|
|
|
2012-12-05 10:46:29 +01:00
|
|
|
post_build() {
|
|
|
|
# Build the qt frontend.
|
2013-04-14 15:09:59 +02:00
|
|
|
cd qt
|
|
|
|
qmake qtr.pro
|
2014-06-04 17:07:25 +02:00
|
|
|
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
|
2013-04-14 15:09:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
# Install qt frontend
|
|
|
|
make -C qt INSTALL_ROOT=${DESTDIR}/usr install
|
|
|
|
}
|
|
|
|
|
2014-03-15 09:51:24 +01:00
|
|
|
transmission-qt_package() {
|
|
|
|
depends="${sourcepkg}>=${version}"
|
|
|
|
short_desc+=" - QT Frontend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/transmission-qt
|
|
|
|
vmove usr/share/man/man1/transmission-qt.1
|
|
|
|
vinstall ${wrksrc}/qt/icons/transmission.png 644 usr/share/pixmaps transmission-qt.png
|
|
|
|
vinstall ${wrksrc}/qt/transmission-qt.desktop 644 usr/share/applications
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fi # !CROSS_BUILD
|
|
|
|
|
2013-04-14 15:09:59 +02:00
|
|
|
transmission-gtk_package() {
|
|
|
|
depends="${sourcepkg}>=${version} hicolor-icon-theme desktop-file-utils"
|
2013-06-27 09:33:11 +02:00
|
|
|
short_desc+=" - GTK+ frontend"
|
2013-04-14 15:09:59 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/transmission-gtk
|
|
|
|
vmove usr/share/man/man1/transmission-gtk.1
|
|
|
|
vmove usr/share/icons/hicolor
|
|
|
|
vmove usr/share/applications
|
|
|
|
vmove usr/share/locale
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|