# Template file for 'libcpuid'.
pkgname=libcpuid
version=0.4.0
revision=1
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
build_style=gnu-configure
short_desc="Small C library for x86 CPU detection and feature extraction"
maintainer="cr6git <quark6@protonmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/anrieff/libcpuid"
distfiles="https://github.com/anrieff/libcpuid/releases/download/v${version}/libcpuid-${version}.tar.gz"
checksum=9ad4d85d7a1151b542e1d032db21e72f1530430c83f1428f80bf07ac6239b24d

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/*.a"
		vmove "usr/lib/*.so"
	}
}
