void-packages/srcpkgs/libcpuid/template

32 lines
869 B
Bash

# Template file for 'libcpuid'
pkgname=libcpuid
version=0.5.1
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="cr6git <quark6@protonmail.com>"
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=36d62842ef43c749c0ba82237b10ede05b298d79a0e39ef5fd1115ba1ff8e126
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
}
}