aboutsummaryrefslogtreecommitdiffstats
path: root/main/bash-completion
diff options
context:
space:
mode:
authorLucas Ramage <lramage@star2star.com>2017-11-01 17:14:21 -0400
committerSören Tempel <soeren+git@soeren-tempel.net>2017-11-05 12:04:43 +0100
commit348319fb32fecdfe65acd91f99b1f3bcda8723a6 (patch)
tree73cea57ab7b0c7d6902c38e8bce7547e1bdd731f /main/bash-completion
parent24a5da12f9bcbe73302e715965cbda884c12c80f (diff)
downloadaports-348319fb32fecdfe65acd91f99b1f3bcda8723a6.tar.bz2
aports-348319fb32fecdfe65acd91f99b1f3bcda8723a6.tar.xz
main/bash-completion: new maintainer
Modernize and add check() while being here.
Diffstat (limited to 'main/bash-completion')
-rw-r--r--main/bash-completion/APKBUILD22
1 files changed, 13 insertions, 9 deletions
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 <soeren+alpine@soeren-tempel.net>
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
-# Maintainer:
+# Maintainer: Lucas Ramage <ramage.lucas@openmailbox.org>
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
}