void-packages/srcpkgs/injeqt/template

29 lines
835 B
Bash

# Template file for 'injeqt'
pkgname=injeqt
version=1.2.0
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="qt5-devel"
short_desc="Dependency injection framework for Qt"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="LGPL-2.1"
homepage="https://github.com/vogel/injeqt/"
distfiles="https://github.com/vogel/${pkgname}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=77540cedb0b26affe993dd18124d796059e34c80a51d9ae6433fdff1860db135
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
CXXFLAGS="-fno-lifetime-dse -Wno-error=cast-align"
injeqt-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}