aboutsummaryrefslogtreecommitdiffstats
path: root/main/cpufrequtils/APKBUILD
blob: cddef63fc3d6b1f78e68f5cd1212cb65dbc1faa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cpufrequtils
pkgver=006
pkgrel=0
pkgdesc="Userspace tools for the kernel cpufreq subsystem"
url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc"
depends="sysfsutils"
makedepends="sysfsutils-dev libtool"
source="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/$pkgname-$pkgver.tar.bz2
	cpufrequtils-005-build.patch
	cpufrequtils-006-nls.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 \
		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="124b0de8f3a4d672539a85ce13eed869  cpufrequtils-006.tar.bz2
0b007dbd9fcb3acf55a8570f21b2f5d4  cpufrequtils-005-build.patch
aa4c6f19766a741a68ae1ad352c6bad9  cpufrequtils-006-nls.patch
b9b80ef2f1b6c5e7ce0476037a8bce6b  cpufrequtils.initd
d47ff635eef03248c633486eaeec191d  cpufrequtils.confd"