void-packages/srcpkgs/libcpuid/template
2019-02-11 05:27:49 -02:00

33 lines
823 B
Bash

# Template file for 'libcpuid'
pkgname=libcpuid
version=0.4.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
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/archive/v${version}.tar.gz"
checksum=263b370d154d55e3b7246e069600b045d27c512456f051e9ce3d999318b58b61
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
pre_configure() {
autoreconf -fi
}
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"
}
}