transmission: split gtk and qt frontends to subpkgs.

This commit is contained in:
Juan RP 2012-12-05 10:46:29 +01:00
parent dccd14ec4f
commit 82adcc64b0
5 changed files with 40 additions and 3 deletions

1
srcpkgs/transmission-gtk Symbolic link
View file

@ -0,0 +1 @@
transmission

1
srcpkgs/transmission-qt Symbolic link
View file

@ -0,0 +1 @@
transmission

View file

@ -1,13 +1,12 @@
# Template file for 'transmission' # Template file for 'transmission'
pkgname=transmission pkgname=transmission
version=2.73 version=2.73
revision=1 revision=2
wrksrc="${pkgname}-2.72" # WTF wrksrc="${pkgname}-2.72" # WTF
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp" configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp"
depends="desktop-file-utils hicolor-icon-theme"
makedepends="pkg-config intltool zlib-devel openssl-devel dbus-glib-devel makedepends="pkg-config intltool zlib-devel openssl-devel dbus-glib-devel
libcurl-devel libevent-devel gtk+3-devel" libcurl-devel libevent-devel gtk+3-devel qt-devel"
short_desc="A fast, easy, and free BitTorrent client" short_desc="A fast, easy, and free BitTorrent client"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.transmissionbt.com/" homepage="http://www.transmissionbt.com/"
@ -17,3 +16,10 @@ checksum=dae699e27c3783e7fd6a84e2183dad9bcdbf40603eab9405e57dfe455cea031c
long_desc=" long_desc="
Transmission is a free, lightweight BitTorrent client. It features a simple, Transmission is a free, lightweight BitTorrent client. It features a simple,
intuitive interface on top on an efficient, cross-platform back-end." intuitive interface on top on an efficient, cross-platform back-end."
subpackages="${pkgname}-gtk ${pkgname}-qt"
post_build() {
# Build the qt frontend.
cd qt && qmake qtr.pro && make ${makejobs}
}

View file

@ -0,0 +1,15 @@
# Template file for 'transmission-gtk'.
#
depends="${sourcepkg}>=${version} hicolor-icon-theme desktop-file-utils"
short_desc="${short_desc} -- development files"
long_desc="${long_desc}
This package contains transmission-gtk, the GTK+ frontend."
do_install() {
mv usr/bin/transmission-gtk usr/bin
mv usr/share/man/man1/transmission-gtk.1 usr/share/man/man1
mv usr/share/icons/hicolor usr/share/icons
mv usr/share/applications usr/share
mv usr/share/locale usr/share
}

View file

@ -0,0 +1,14 @@
# Template file for 'transmission-qt'.
#
depends="${sourcepkg}>=${version}"
short_desc="${short_desc} -- QT Frontend"
long_desc="${long_desc}
This package contains transmission-qt, the QT frontend."
do_install() {
make -C ${wksrc}/qt INSTALL_ROOT=${DESTDIR}/usr install
vinstall qt/icons/transmission.png 644 \
usr/share/pixmaps transmission-qt.png
vinstall qt/transmission-qt.desktop 644 usr/share/applications
}