diff options
Diffstat (limited to 'extra/cpufrequtils/PKGBUILD')
-rw-r--r-- | extra/cpufrequtils/PKGBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/extra/cpufrequtils/PKGBUILD b/extra/cpufrequtils/PKGBUILD index d5b92095b..21ffbe1cd 100644 --- a/extra/cpufrequtils/PKGBUILD +++ b/extra/cpufrequtils/PKGBUILD @@ -7,26 +7,30 @@ pkgname=cpufrequtils pkgver=008 pkgrel=1 pkgdesc="Userspace tools for the kernel cpufreq subsystem" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html" license=('GPL') depends=('sysfsutils') backup=('etc/conf.d/cpufreq') source=(http://www.kernel.org/pub/linux/utils/kernel/cpufreq/${pkgname}-${pkgver}.tar.bz2 cpufreq.rcd - cpufreq.confd) -options=(!libtool) + cpufreq.confd + cpufrequtils-mips.patch) +options=(!libtool !distcc) md5sums=('c59b71c044d463896f3247e8dd83dd7e' '7f2b5085df44d2df3e7c2d0b9f6dab08' - 'baae1f2abffc6bef2bd32a8dd8263c09') + 'baae1f2abffc6bef2bd32a8dd8263c09' + 'edbe311e6813f3b395a08b7f174065c1') build() { cd "${srcdir}/${pkgname}-${pkgver}" - make -j1 || return 1 - make INSTALL="/bin/install -c" mandir=/usr/share/man DESTDIR="${pkgdir}" install || return 1 + [ "$CARCH" = "mips64el" ] && patch -Np0 -i ${srcdir}/cpufrequtils-mips.patch - install -D -m755 ${srcdir}/cpufreq.rcd "${pkgdir}/etc/rc.d/cpufreq" || return 1 - install -D -m644 ${srcdir}/cpufreq.confd "${pkgdir}/etc/conf.d/cpufreq" || return 1 + make -j1 + make INSTALL="/bin/install -c" mandir=/usr/share/man DESTDIR="${pkgdir}" install + + install -D -m755 ${srcdir}/cpufreq.rcd "${pkgdir}/etc/rc.d/cpufreq" + install -D -m644 ${srcdir}/cpufreq.confd "${pkgdir}/etc/conf.d/cpufreq" } |