From 5a65fddad7fc2abbd2e0ff12bc03e101dd64f9d8 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 3 Apr 2017 01:14:23 +0200 Subject: main/less: improve abuild --- main/less/APKBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main') diff --git a/main/less/APKBUILD b/main/less/APKBUILD index 5674f237a3..9d43dfac2d 100644 --- a/main/less/APKBUILD +++ b/main/less/APKBUILD @@ -7,20 +7,20 @@ pkgdesc="File pager" url="http://www.greenwoodsoftware.com/less/" arch="all" license="GPL" -depends="" makedepends="ncurses-dev" -install="" subpackages="$pkgname-doc" source="http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz" - +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$srcdir/$pkgname-$pkgver" + default_prepare || return 1 + + cd "$builddir" chmod +x configure } build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -33,7 +33,7 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" make DESTDIR="$pkgdir" install } -- cgit v1.2.3