diff options
Diffstat (limited to 'main/grep')
-rw-r--r-- | main/grep/APKBUILD | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/main/grep/APKBUILD b/main/grep/APKBUILD index 3303e7bd69..9f7d618f5b 100644 --- a/main/grep/APKBUILD +++ b/main/grep/APKBUILD @@ -13,8 +13,15 @@ install= subpackages="$pkgname-doc" source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + update_config_sub || return 1 +} + build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure \ --build=$CBUILD \ @@ -29,8 +36,11 @@ build() { } package() { - cd "$srcdir/$pkgname-$pkgver" - make DESTDIR="$pkgdir" install + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + return 0 } md5sums="d4a3f03849d1e17ce56ab76aa5a24cab grep-2.14.tar.xz" |