aboutsummaryrefslogtreecommitdiffstats
path: root/main/bash-completion
diff options
context:
space:
mode:
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
}