mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 11:21:50 +01:00
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=cpufrequtils
|
|
pkgver=008
|
|
pkgrel=1
|
|
pkgdesc="Userspace tools for the kernel cpufreq subsystem"
|
|
url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
|
|
arch="all"
|
|
license="GPL"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
depends="sysfsutils"
|
|
makedepends="sysfsutils-dev libtool"
|
|
source="ftp://ftp.archlinux.org/other/cpufrequtils/cpufrequtils-$pkgver.tar.bz2
|
|
cpufrequtils-006-nls.patch
|
|
0001-Support-for-Position-Independet-Code-by-aboid-clobbe.patch
|
|
$pkgname.initd
|
|
$pkgname.confd"
|
|
|
|
build() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
for i in ../*.patch; do
|
|
msg "Applying $i..."
|
|
patch -p1 < $i || return 1
|
|
done
|
|
|
|
# distcc and ccache makes libtool confused about the tag.
|
|
# we save 4k by disabling the 2.4 kernel support (PROC=false)
|
|
make -j1 LIBTOOL_OPT="--tag=CC --silent" \
|
|
NLS=false \
|
|
PROC=false \
|
|
|| return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
make mandir=/usr/share/man \
|
|
NLS=false \
|
|
INSTALL=install \
|
|
DESTDIR="$pkgdir" \
|
|
install || return 1
|
|
install -D -m755 ../$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
|
install -D -m644 ../$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
|
|
}
|
|
md5sums="c59b71c044d463896f3247e8dd83dd7e cpufrequtils-008.tar.bz2
|
|
aa4c6f19766a741a68ae1ad352c6bad9 cpufrequtils-006-nls.patch
|
|
9f999b70138d84580894df48340e50cc 0001-Support-for-Position-Independet-Code-by-aboid-clobbe.patch
|
|
b9b80ef2f1b6c5e7ce0476037a8bce6b cpufrequtils.initd
|
|
d47ff635eef03248c633486eaeec191d cpufrequtils.confd"
|