PKGBUILDs/alarm/cpufrequtils/PKGBUILD

43 lines
1.3 KiB
Bash
Raw Normal View History

2012-06-22 16:26:01 +00:00
# $Id: PKGBUILD 149475 2012-02-08 09:53:00Z pierre $
2011-05-28 22:26:29 +00:00
# Maintainer: kevin <kevin@archlinux.org>
# Contributor: phrakture <aaronmgriffin+gmail+com>
# Contributor: SpepS <dreamspepser at yahoo dot it>
2012-06-22 16:26:01 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix x86-only parts
2011-05-28 22:26:29 +00:00
pkgname=cpufrequtils
2012-06-22 16:26:01 +00:00
pkgver=008
2016-07-02 01:30:43 +00:00
pkgrel=3
2011-05-28 22:26:29 +00:00
pkgdesc="Userspace tools for the kernel cpufreq subsystem"
arch=('i686' 'x86_64')
url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
license=('GPL')
depends=('sysfsutils')
backup=('etc/conf.d/cpufreq')
2016-07-02 01:30:43 +00:00
source=("https://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils-${pkgver}.tar.xz"
2012-06-22 16:26:01 +00:00
'cpufreq.rcd'
'cpufreq.confd'
'0001-Only-x86-has-cpuid-instruction.patch')
options=('!libtool' '!makeflags')
2016-07-02 01:30:43 +00:00
md5sums=('e0c9f333a9546f71d17fd5a0546db79e'
2011-05-28 22:26:29 +00:00
'7f2b5085df44d2df3e7c2d0b9f6dab08'
2012-06-22 16:26:01 +00:00
'baae1f2abffc6bef2bd32a8dd8263c09'
'9ed71a50670aa99e12245cb3f5199142')
2011-05-28 22:26:29 +00:00
2012-06-22 16:26:01 +00:00
build() {
2011-05-28 22:26:29 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2012-06-22 16:26:01 +00:00
patch -p1 -i "${srcdir}/0001-Only-x86-has-cpuid-instruction.patch"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make INSTALL="/usr/bin/install -c" mandir=/usr/share/man DESTDIR="${pkgdir}" install
2011-05-28 22:26:29 +00:00
2012-06-22 16:26:01 +00:00
install -D -m755 ${srcdir}/cpufreq.rcd "${pkgdir}/etc/rc.d/cpufreq"
install -D -m644 ${srcdir}/cpufreq.confd "${pkgdir}/etc/conf.d/cpufreq"
2011-05-28 22:26:29 +00:00
}