void-packages/srcpkgs/qtchooser/template

33 lines
842 B
Bash

# Template file for 'qtchooser'
pkgname=qtchooser
reverts=20150315_2
version=63
revision=2
_commit=g13a3d08
wrksrc="qtchooser-$version-$_commit"
build_style=gnu-makefile
hostmakedepends="git"
short_desc="Qt4/Qt5 version chooser"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1, GPL-3"
homepage="http://code.qt.io/cgit/qt/qtchooser.git/"
distfiles="$DEBIAN_SITE/main/q/qtchooser/qtchooser_$version-$_commit.orig.tar.xz"
checksum=ce436e8df1d18ee0510b4815b2543226b2ee97e34ed843fd80e13616ef568416
do_build() {
make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LFLAGS="$LDFLAGS"
}
do_check() {
# uses qmake managed by qtchooser: dependency loop
:
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install
vmkdir etc/xdg/qtchooser
vinstall ${FILESDIR}/4.conf 644 etc/xdg/qtchooser
vinstall ${FILESDIR}/5.conf 644 etc/xdg/qtchooser
}