aboutsummaryrefslogtreecommitdiffstats
path: root/main/nano/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/nano/APKBUILD')
-rw-r--r--main/nano/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/nano/APKBUILD b/main/nano/APKBUILD
index 560d0950b6..e8efe62325 100644
--- a/main/nano/APKBUILD
+++ b/main/nano/APKBUILD
@@ -13,8 +13,15 @@ install=
subpackages="$pkgname-doc"
source="http://www.nano-editor.org/dist/v${pkgver%.*}/$pkgname-$pkgver.tar.gz"
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
./configure \
--build=$CBUILD \
@@ -30,7 +37,7 @@ build() {
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/etc