summaryrefslogtreecommitdiff
path: root/user/bash-completion/APKBUILD
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 15:04:07 -0800
committerzlg <zlg@zlg.space>2018-11-28 16:13:45 -0800
commit5ddcdeca0acd3938f7dd56fafe8650b727e6ecf6 (patch)
treed347e4258eee575fae15a55bb58dbb141ce2d04d /user/bash-completion/APKBUILD
parente48520ec1e55df33a5303920467f286f3b1566f7 (diff)
downloadpackages-5ddcdeca0acd3938f7dd56fafe8650b727e6ecf6.tar.gz
packages-5ddcdeca0acd3938f7dd56fafe8650b727e6ecf6.tar.bz2
packages-5ddcdeca0acd3938f7dd56fafe8650b727e6ecf6.tar.xz
packages-5ddcdeca0acd3938f7dd56fafe8650b727e6ecf6.zip
user/bash-completion: new package
Diffstat (limited to 'user/bash-completion/APKBUILD')
-rw-r--r--user/bash-completion/APKBUILD69
1 files changed, 69 insertions, 0 deletions
diff --git a/user/bash-completion/APKBUILD b/user/bash-completion/APKBUILD
new file mode 100644
index 000000000..42575f687
--- /dev/null
+++ b/user/bash-completion/APKBUILD
@@ -0,0 +1,69 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=bash-completion
+pkgver=2.8
+pkgrel=0
+pkgdesc="Command-line tab-completion for bash"
+url="https://github.com/scop/bash-completion"
+arch="noarch"
+license="GPL-2.0-or-later"
+depends="bash"
+makedepends=""
+subpackages="$pkgname-doc"
+source="https://github.com/scop/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"
+
+# Provided with util-linux and networkmanager:
+_conflicting="
+ cal
+ chsh
+ dmesg
+ eject
+ hd
+ hexdump
+ hwclock
+ ionice
+ look
+ ncal
+ newgrp
+ renice
+ rfkill
+ rtcwake
+ su
+ nmcli
+ umount
+ mount
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ 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/
+
+ cd "$pkgdir"/usr/share/bash-completion/completions
+ for c in $_conflicting; do
+ rm -f $c
+ done
+}
+
+sha512sums="d839ef5a98811a2aade7ebdc0bc84c84a41c74db384f89913b06f3c25add1ba22528ac25392b19d27280685d258c74dcdc11247cbaae5b8d82f2c0b546abc268 bash-completion-2.8.tar.xz"