# Template file for 'libcpuid'
pkgname=libcpuid
version=0.6.2
revision=1
archs="i686* x86_64*"
build_style=cmake
hostmakedepends="doxygen"
checkdepends="python3"
short_desc="Small C library for x86 CPU detection and feature extraction"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/anrieff/libcpuid"
changelog="https://raw.githubusercontent.com/anrieff/libcpuid/master/ChangeLog"
distfiles="https://github.com/anrieff/libcpuid/archive/v${version}.tar.gz"
checksum=3e7f2fc243a6a68d6c909b701cfa0db6422ec33fccf91ea5ab7beda3eb798672

post_install() {
	vlicense COPYING
}

libcpuid-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/lib/cmake
		vmove usr/share/man/man3
	}
}
