void-packages/srcpkgs/cpufrequtils/template

37 lines
1006 B
Bash

# Template file for 'cpufrequtils'
pkgname=cpufrequtils
version=008
revision=7
short_desc="Userspace tools for the Linux kernel cpufreq subsystem"
homepage="ftp://ftp.archlinux.org/other/cpufrequtils/"
license="GPL-2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://mirror.linux.org.au/linux/utils/kernel/cpufreq/${pkgname}-${version}.tar.bz2"
checksum=1b9daa591d977679fb09ffb9b4d58afa94b9387f3c0be92ec077080e328130f1
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
do_build() {
make CC=$CC CFLAGS="$CFLAGS" STRIP=true
}
do_install() {
sed -i "s|/usr/bin/install|install|g" Makefile
make DESTDIR=${DESTDIR} mandir=/usr/share/man install
}
libcpufreq_package() {
short_desc="Library for the kernel cpufreq subsystem"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libcpufreq-devel_package() {
conflicts="libcpupower-devel>=0"
depends="libcpufreq>=${version}_${revision}"
short_desc="libcpufreq - development tools"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}