aboutsummaryrefslogtreecommitdiffstats
path: root/main/cpufreqd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/cpufreqd/APKBUILD')
-rw-r--r--main/cpufreqd/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/cpufreqd/APKBUILD b/main/cpufreqd/APKBUILD
index cd3961e59b..757083f659 100644
--- a/main/cpufreqd/APKBUILD
+++ b/main/cpufreqd/APKBUILD
@@ -13,9 +13,16 @@ install=
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
cpufreqd.initd"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build ()
{
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -26,7 +33,7 @@ build ()
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
install -Dm 755 ../cpufreqd.initd "$pkgdir"/etc/init.d/cpufreqd \