From 348319fb32fecdfe65acd91f99b1f3bcda8723a6 Mon Sep 17 00:00:00 2001 From: Lucas Ramage Date: Wed, 1 Nov 2017 17:14:21 -0400 Subject: main/bash-completion: new maintainer Modernize and add check() while being here. --- main/bash-completion/APKBUILD | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'main') diff --git a/main/bash-completion/APKBUILD b/main/bash-completion/APKBUILD index f5b5f90517..9ad6efdf48 100644 --- a/main/bash-completion/APKBUILD +++ b/main/bash-completion/APKBUILD @@ -1,9 +1,9 @@ # Contributor: Sören Tempel # Contributor: Kiyoshi Aman -# Maintainer: +# Maintainer: Lucas Ramage pkgname=bash-completion pkgver=2.7 -pkgrel=1 +pkgrel=2 pkgdesc="Command-line tab-completion for bash" url="https://github.com/scop/bash-completion" arch="noarch" @@ -13,6 +13,7 @@ depends_dev= makedepends="$depends_dev" install="" source="https://github.com/scop/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz" +builddir="$srcdir"/$pkgname-$pkgver # Provided with util-linux and networkmanager: _conflicting=" @@ -35,7 +36,6 @@ _conflicting=" mount " -builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ @@ -44,22 +44,26 @@ build() { --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make -j1 DESTDIR="$pkgdir" install || return 1 + make -j1 DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -m644 AUTHORS CHANGES CONTRIBUTING.md README.md \ - "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + "$pkgdir"/usr/share/doc/$pkgname/ cd "$pkgdir"/usr/share/bash-completion/completions for c in $_conflicting; do - rm -f $c || return 1 + rm -f $c done } -- cgit v1.2.3