aboutsummaryrefslogtreecommitdiffstats
path: root/main/cpufrequtils/APKBUILD
blob: 01e33737e2faaa2e78efde937074954bfd002375 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cpufrequtils
pkgver=008
pkgrel=2
pkgdesc="Userspace tools for the kernel cpufreq subsystem"
url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html"
arch="all"
license="GPL2"
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"
sha256sums="1b9daa591d977679fb09ffb9b4d58afa94b9387f3c0be92ec077080e328130f1  cpufrequtils-008.tar.bz2
fb60cf2543461af3f47ea85927be5d5242489da99a32801ed8beea65a21472b4  cpufrequtils-006-nls.patch
3501d2e07ed7a7609d93d40428057935a08cb84f7b46882710d6b4cf966c1749  0001-Support-for-Position-Independet-Code-by-aboid-clobbe.patch
af83b2354bd8876efecd85762a61a40a4b498633e186cb85db7a22389936a2e6  cpufrequtils.initd
602b65f6e9927bfb37a26a34c1b44bd4a87cdb2977b5547398e17432afe55727  cpufrequtils.confd"
sha512sums="d25dcc4fbf15bdca65a3fab6ee33d6cf4b7ab7ed291aea42ed7970b707535ddfcd27fd0189aa48affc2792abf72539f1388cc544019e6fc06353a2f9c5a49d17  cpufrequtils-008.tar.bz2
26e2c9e273b084eb64b38b187064a560d05479026522912390054fdbc99eaba55ca682a59884bc67f013c3ce9d7b80e5ba765351765d921c0c66573287f1db52  cpufrequtils-006-nls.patch
827e9b73902f50c9bce75b76cd33759a627837705dc92520ab360e95cc9b242a76c5d59cd9eea83cd6d2c832b97f74f3e3ac31f3bfef82d36fa0a55266e7ec72  0001-Support-for-Position-Independet-Code-by-aboid-clobbe.patch
a9a1023ad5d55b9050a392a8c05e29dbf1ed9bcdcd8e82063d38adc2a81a86e306ffd7aaf048518a1ca427b4ffcd0ca9410fbd5ae5defe648512e81366caecaa  cpufrequtils.initd
81adc035c781c2c6f94fdb9a69dfb5d867830ab0685f2badce055b9f8095881456522fc0cd5386140d920fd1d9b96c82d8dcecd9962e3e6ef5f9be926153802b  cpufrequtils.confd"