smtube: fix cross builds and paths

This commit is contained in:
Duncaen 2017-05-06 18:42:21 +02:00
parent 478d487d48
commit 3cad8e84f4

View file

@ -1,8 +1,13 @@
# Template file for 'smtube'
pkgname=smtube
version=17.5.0
revision=1
build_style=gnu-makefile
revision=2
build_style=qmake
make_build_args="
DATA_PATH=\\\"/usr/share/smtube\\\"
TRANSLATION_PATH=\\\"/usr/share/smtube/translations\\\"
DOC_PATH=\\\"/usr/share/doc/smtube\\\""
build_wrksrc=src
hostmakedepends="qt5-host-tools qt5-script-devel qt5-tools-devel qt5-webkit-devel"
makedepends="zlib-devel qt5-script-devel qt5-tools-devel qt5-webkit-devel"
depends="hicolor-icon-theme desktop-file-utils"
@ -13,9 +18,10 @@ homepage="http://www.smtube.org/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=8dca5245e2d2be4cb472b7a6e9e7ccafa52f25b0ef2c924944aa058b02a5a08e
pre_build() {
export QMAKE_OPTS="QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\""
post_build() {
lrelease smtube.pro
}
do_build() {
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX" LD="$CXX"
do_install() {
cd "${wrksrc}"
make install PREFIX=/usr DESTDIR=${DESTDIR}
}