2010-04-13 21:50:33 +02:00
|
|
|
# Template file for 'cpufrequtils'
|
|
|
|
pkgname=cpufrequtils
|
2011-05-05 10:42:17 +02:00
|
|
|
version=008
|
2015-05-22 08:39:47 +02:00
|
|
|
revision=9
|
2011-05-05 10:42:17 +02:00
|
|
|
short_desc="Userspace tools for the Linux kernel cpufreq subsystem"
|
2013-03-31 09:35:52 +02:00
|
|
|
homepage="ftp://ftp.archlinux.org/other/cpufrequtils/"
|
|
|
|
license="GPL-2"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-02-11 14:25:05 +01:00
|
|
|
distfiles="http://mirror.linux.org.au/linux/utils/kernel/cpufreq/${pkgname}-${version}.tar.bz2"
|
2011-05-05 10:42:17 +02:00
|
|
|
checksum=1b9daa591d977679fb09ffb9b4d58afa94b9387f3c0be92ec077080e328130f1
|
2010-04-13 21:50:33 +02:00
|
|
|
|
2015-04-23 10:56:57 +02:00
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
2014-02-18 16:19:53 +01:00
|
|
|
|
2012-05-23 11:28:11 +02:00
|
|
|
do_build() {
|
2015-02-23 11:49:51 +01:00
|
|
|
make CC=$CC CFLAGS="$CFLAGS" STRIP=true
|
2011-05-05 10:42:17 +02:00
|
|
|
}
|
2012-05-23 11:28:11 +02:00
|
|
|
do_install() {
|
2011-07-03 00:44:22 +02:00
|
|
|
sed -i "s|/usr/bin/install|install|g" Makefile
|
2011-05-05 10:42:17 +02:00
|
|
|
make DESTDIR=${DESTDIR} mandir=/usr/share/man install
|
2010-04-13 21:50:33 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
libcpufreq_package() {
|
|
|
|
short_desc="Library for the kernel cpufreq subsystem"
|
|
|
|
pkg_install() {
|
2014-02-18 16:20:35 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libcpufreq-devel_package() {
|
2015-02-23 11:47:22 +01:00
|
|
|
conflicts="libcpupower-devel>=0"
|
2015-02-11 14:25:05 +01:00
|
|
|
depends="libcpufreq>=${version}_${revision}"
|
2013-04-12 08:55:23 +02:00
|
|
|
short_desc="libcpufreq - development tools"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-02-18 16:17:08 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|