aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxklavier/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-02 18:37:03 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-02 18:37:03 +0000
commit84bae70a2cba7ff39657d52361876b83f0e0af36 (patch)
treeda5d9c0312bcb7e1542660bf385e41ef7fc9e92c /main/libxklavier/APKBUILD
parent5e53e9d767d907b8df81fb8019dd9fdf278704db (diff)
downloadaports-84bae70a2cba7ff39657d52361876b83f0e0af36.tar.bz2
aports-84bae70a2cba7ff39657d52361876b83f0e0af36.tar.xz
main/[various]: update config.sub
Diffstat (limited to 'main/libxklavier/APKBUILD')
-rw-r--r--main/libxklavier/APKBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/libxklavier/APKBUILD b/main/libxklavier/APKBUILD
index 771398a481..c9df68805c 100644
--- a/main/libxklavier/APKBUILD
+++ b/main/libxklavier/APKBUILD
@@ -21,9 +21,15 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${_v}/$pkgname-$pkgver.t
depends_dev="libxml2-dev glib-dev gettext-dev libxkbfile-dev"
-build ()
-{
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,7 +41,7 @@ build ()
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}