transmission: disable -qt subpkg in cross builds.
This commit is contained in:
parent
007c633b41
commit
324c38d9b9
1 changed files with 17 additions and 12 deletions
|
@ -5,8 +5,7 @@ revision=1
|
|||
build_style=gnu-configure
|
||||
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp"
|
||||
hostmakedepends="pkg-config intltool"
|
||||
makedepends="zlib-devel openssl-devel dbus-glib-devel
|
||||
libcurl-devel libevent-devel gtk+3-devel qt-devel"
|
||||
makedepends="zlib-devel openssl-devel dbus-glib-devel libcurl-devel libevent-devel gtk+3-devel"
|
||||
short_desc="A fast, easy, and free BitTorrent client"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.transmissionbt.com/"
|
||||
|
@ -14,6 +13,9 @@ license="MIT, GPL-2"
|
|||
distfiles="http://download.transmissionbt.com/files/$pkgname-$version.tar.xz"
|
||||
checksum=3996651087df67a85f1e1b4a92b1b518ddefdd84c654b8df6fbccb0b91f03522
|
||||
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
makedepends+=" qt-devel"
|
||||
|
||||
post_build() {
|
||||
# Build the qt frontend.
|
||||
cd qt
|
||||
|
@ -26,6 +28,19 @@ post_install() {
|
|||
make -C qt INSTALL_ROOT=${DESTDIR}/usr install
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
transmission-gtk_package() {
|
||||
depends="${sourcepkg}>=${version} hicolor-icon-theme desktop-file-utils"
|
||||
short_desc+=" - GTK+ frontend"
|
||||
|
@ -38,13 +53,3 @@ transmission-gtk_package() {
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue