void-packages/srcpkgs/qhttpengine/template

33 lines
816 B
Bash

# Template file for 'qhttpengine'
pkgname=qhttpengine
version=1.0.1
revision=1
build_style=cmake
hostmakedepends="qt5-qmake"
makedepends="qt5-devel"
short_desc="HTTP server for Qt applications"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://github.com/nitroshare/qhttpengine"
distfiles="https://github.com/nitroshare/qhttpengine/archive/${version}.tar.gz"
checksum=6505cf889909dc29bab4069116656e7ca5a9e879f04935139439c5691a76c55e
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools"
fi
post_install() {
vlicense LICENSE.txt
}
qhttpengine-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}