transmission: unbreak and update for qt5.
This commit is contained in:
parent
c14ff32c5e
commit
d66cf42e9a
1 changed files with 11 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'transmission'
|
||||
pkgname=transmission
|
||||
version=2.94
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp
|
||||
--without-systemd-daemon"
|
||||
hostmakedepends="intltool pkg-config"
|
||||
hostmakedepends="intltool pkg-config qt5-host-tools"
|
||||
makedepends="dbus-glib-devel gtk+3-devel libcurl-devel libevent-devel
|
||||
qt5-tools-devel"
|
||||
short_desc="Fast, easy and free BitTorrent client"
|
||||
|
@ -26,6 +26,10 @@ if [ -z "$CROSS_BUILD" ]; then
|
|||
subpackages+=" transmission-qt"
|
||||
fi
|
||||
|
||||
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||
makedepends+=" musl-legacy-compat"
|
||||
fi
|
||||
|
||||
post_configure() {
|
||||
# Add missing includes which happen as side-effects with glibc
|
||||
sed -i libtransmission/transmission.h \
|
||||
|
@ -38,8 +42,8 @@ do_build() {
|
|||
if [ -z "$CROSS_BUILD" ]; then
|
||||
# Build the Qt frontend
|
||||
cd qt
|
||||
qmake QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" qtr.pro
|
||||
lrelease translations/*.ts
|
||||
qmake-qt5 MOC=moc-qt5 QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" qtr.pro
|
||||
lrelease-qt5 translations/*.ts
|
||||
make ${makejobs} CXXFLAGS="${CXXFLAGS} -fPIC -std=c++11" LDFLAGS="${LDFLAGS}"
|
||||
fi
|
||||
}
|
||||
|
@ -57,8 +61,8 @@ do_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
|
||||
vmkdir usr/share/qt5/translations
|
||||
vcopy qt/translations/*.qm usr/share/qt5/translations
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -74,7 +78,7 @@ transmission-qt_package() {
|
|||
pkg_install() {
|
||||
vmove usr/bin/transmission-qt
|
||||
vmove usr/share/man/man1/transmission-qt.1
|
||||
vmove usr/share/qt4/translations
|
||||
vmove usr/share/qt5/translations
|
||||
sed -i '/Icon=/s/transmission/&-qt/' ${wrksrc}/qt/transmission-qt.desktop
|
||||
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