void-packages/srcpkgs/libcpuid/template
2019-03-02 16:55:54 -03:00

33 lines
794 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
archs="i686* x86_64*"
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"
}
}