2009-08-16 17:54:55 +00:00
|
|
|
# Template file for 'transmission'
|
|
|
|
pkgname=transmission
|
2014-07-09 22:58:28 +00:00
|
|
|
version=2.84
|
2015-03-04 15:04:30 +00:00
|
|
|
revision=8
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2015-02-21 12:11:28 +00:00
|
|
|
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp
|
|
|
|
$(vopt_with systemd systemd-daemon)"
|
2013-04-14 13:09:59 +00:00
|
|
|
hostmakedepends="pkg-config intltool"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="zlib-devel libressl-devel dbus-glib-devel libcurl-devel
|
2015-02-21 12:11:28 +00:00
|
|
|
libevent-devel gtk+3-devel $(vopt_if systemd systemd-devel)"
|
2009-08-16 17:54:55 +00:00
|
|
|
short_desc="A fast, easy, and free BitTorrent client"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-08-18 19:04:21 +00:00
|
|
|
homepage="http://www.transmissionbt.com/"
|
|
|
|
license="MIT, GPL-2"
|
2015-02-21 12:11:28 +00:00
|
|
|
distfiles="https://transmission.cachefly.net/${pkgname}-${version}.tar.xz"
|
2014-07-09 22:58:28 +00:00
|
|
|
checksum=a9fc1936b4ee414acc732ada04e84339d6755cd0d097bcbd11ba2cfc540db9eb
|
2012-12-05 09:46:29 +00:00
|
|
|
|
2014-08-08 21:28:08 +00:00
|
|
|
# Create transmission system user/group
|
2014-08-12 07:17:41 +00:00
|
|
|
system_accounts="transmission"
|
2014-08-08 21:28:08 +00:00
|
|
|
transmission_homedir="/var/lib/transmission"
|
|
|
|
make_dirs="/var/lib/transmission 0755 transmission transmission"
|
2014-10-13 12:53:31 +00:00
|
|
|
subpackages="transmission-gtk"
|
2014-08-08 21:28:08 +00:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="systemd"
|
|
|
|
|
2014-03-15 08:51:24 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2015-01-18 10:49:26 +00:00
|
|
|
makedepends+=" qt5-devel qt5-tools-devel"
|
2014-10-13 12:53:31 +00:00
|
|
|
subpackages+=" transmission-qt"
|
2014-08-08 21:28:08 +00:00
|
|
|
fi
|
2014-03-15 08:51:24 +00:00
|
|
|
|
2014-08-08 21:28:08 +00:00
|
|
|
do_build() {
|
2014-06-04 15:07:25 +00:00
|
|
|
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
|
2014-08-08 21:28:08 +00:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
# Build the Qt frontend
|
|
|
|
cd qt
|
|
|
|
qmake qtr.pro
|
|
|
|
lrelease translations/*.ts
|
2015-01-18 10:49:26 +00:00
|
|
|
make CXXFLAGS="${CXXFLAGS} -fPIC -std=c++11" LDFLAGS="${LDFLAGS}"
|
2014-08-08 21:28:08 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
# Install CLI tools, daemon and web client
|
|
|
|
for dir in cli daemon utils web; do
|
|
|
|
make -C ${dir} DESTDIR=${DESTDIR} install
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install GTK+ frontend
|
|
|
|
make -C gtk DESTDIR=${DESTDIR} install
|
|
|
|
make -C po DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
# Install Qt frontend
|
|
|
|
make -C qt INSTALL_ROOT=${DESTDIR}/usr install
|
|
|
|
vmkdir usr/share/qt4/translations
|
|
|
|
vcopy qt/translations/*.qm usr/share/qt4/translations
|
|
|
|
fi
|
2013-04-14 13:09:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2014-08-08 21:28:08 +00:00
|
|
|
rm -f ${DESTDIR}/usr/share/${pkgname}/web/LICENSE
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall daemon/transmission-daemon.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2014-10-13 12:53:31 +00:00
|
|
|
vsv transmission-daemon
|
2013-04-14 13:09:59 +00:00
|
|
|
}
|
|
|
|
|
2014-03-15 08:51:24 +00:00
|
|
|
transmission-qt_package() {
|
2014-08-08 21:28:08 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
|
|
|
short_desc+=" - Qt frontend"
|
2014-03-15 08:51:24 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/transmission-qt
|
|
|
|
vmove usr/share/man/man1/transmission-qt.1
|
2014-08-08 21:28:08 +00:00
|
|
|
vmove usr/share/qt4/translations
|
2014-03-15 08:51:24 +00:00
|
|
|
vinstall ${wrksrc}/qt/icons/transmission.png 644 usr/share/pixmaps transmission-qt.png
|
|
|
|
vinstall ${wrksrc}/qt/transmission-qt.desktop 644 usr/share/applications
|
|
|
|
}
|
|
|
|
}
|
2013-04-14 13:09:59 +00:00
|
|
|
transmission-gtk_package() {
|
2014-08-08 21:28:08 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
2013-06-27 07:33:11 +00:00
|
|
|
short_desc+=" - GTK+ frontend"
|
2013-04-14 13:09:59 +00: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
|
2014-08-08 21:28:08 +00:00
|
|
|
vmove usr/share/pixmaps
|
2013-04-14 13:09:59 +00:00
|
|
|
vmove usr/share/locale
|
|
|
|
}
|
|
|
|
}
|