transmission: split gtk and qt frontends to subpkgs.
This commit is contained in:
parent
dccd14ec4f
commit
82adcc64b0
5 changed files with 40 additions and 3 deletions
1
srcpkgs/transmission-gtk
Symbolic link
1
srcpkgs/transmission-gtk
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
transmission
|
1
srcpkgs/transmission-qt
Symbolic link
1
srcpkgs/transmission-qt
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
transmission
|
|
@ -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}
|
||||||
|
}
|
||||||
|
|
15
srcpkgs/transmission/transmission-gtk.template
Normal file
15
srcpkgs/transmission/transmission-gtk.template
Normal 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
|
||||||
|
}
|
14
srcpkgs/transmission/transmission-qt.template
Normal file
14
srcpkgs/transmission/transmission-qt.template
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue