summaryrefslogtreecommitdiffstats
path: root/main/xfce4-battery-plugin/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-30 06:50:11 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-30 06:50:11 +0000
commit3cbacc3c5e414a58ae215445519eb46db4921e08 (patch)
treefdda868b3483e251d6dd9c91f429ae094f093b45 /main/xfce4-battery-plugin/APKBUILD
parentd48c529a8295229678d40751772417ef08a681f4 (diff)
downloadaports-3cbacc3c5e414a58ae215445519eb46db4921e08.tar.bz2
aports-3cbacc3c5e414a58ae215445519eb46db4921e08.tar.xz
main/[various]: update config.sub
Diffstat (limited to 'main/xfce4-battery-plugin/APKBUILD')
-rw-r--r--main/xfce4-battery-plugin/APKBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/main/xfce4-battery-plugin/APKBUILD b/main/xfce4-battery-plugin/APKBUILD
index 733d13214..fd824c90e 100644
--- a/main/xfce4-battery-plugin/APKBUILD
+++ b/main/xfce4-battery-plugin/APKBUILD
@@ -12,8 +12,11 @@ subpackages="$pkgname-lang"
source="http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
"
+_builddir="$srcdir/$pkgname-$pkgver"
+
prepare() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
@@ -22,7 +25,7 @@ prepare() {
}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -36,7 +39,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
rm "$pkgdir"/usr/lib/xfce4/panel/plugins/*.la
}