aboutsummaryrefslogtreecommitdiffstats
path: root/main/bash-completion
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-12-02 09:10:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-12-02 09:10:17 +0000
commit90f1ba2df30fb85233b96c0bef46e3cebfb7c1ce (patch)
tree2829db6fb9e12eb6f0b25f66324d5282b68239b5 /main/bash-completion
parent7d3caea19ad0e62d6249fc54b4a2adb00cc6f8e5 (diff)
downloadaports-90f1ba2df30fb85233b96c0bef46e3cebfb7c1ce.tar.bz2
aports-90f1ba2df30fb85233b96c0bef46e3cebfb7c1ce.tar.xz
main/bash-completion: moved from testing
Diffstat (limited to 'main/bash-completion')
-rw-r--r--main/bash-completion/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/main/bash-completion/APKBUILD b/main/bash-completion/APKBUILD
new file mode 100644
index 0000000000..ac8d8c8343
--- /dev/null
+++ b/main/bash-completion/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer:
+pkgname=bash-completion
+pkgver=2.1
+pkgrel=1
+pkgdesc="Command-line tab-completion for bash"
+url="http://bash-completion.alioth.debian.org/"
+arch="noarch"
+license="GPL2+"
+depends="bash"
+depends_dev=
+makedepends="$depends_dev"
+install=""
+source="http://ftp.debian.org/debian/pool/main/b/bash-completion/${pkgname}_${pkgver}.orig.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+# Provided with util-linux and networkmanager:
+_conflicting="
+ cal
+ chsh
+ dmesg
+ eject
+ hd
+ hexdump
+ hwclock
+ ionice
+ look
+ ncal
+ newgrp
+ renice
+ rtcwake
+ su
+ nmcli
+ "
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
+
+ cd "$pkgdir"/usr/share/bash-completion/completions
+ for c in $_conflicting; do
+ rm $c
+ done
+}
+
+md5sums="4e2a9f11a4042a38ee79ddcd048e8b9e bash-completion_2.1.orig.tar.bz2"
+sha256sums="2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f bash-completion_2.1.orig.tar.bz2"
+sha512sums="0bc71039ef136b1ccb72527eb40f2ed4068a58dc31b1ac1ee52a40e7c950ea4cfbb4f1bee2f0da6774e56062578fa3653096e6d306eea7f028dd55ff737e92fe bash-completion_2.1.orig.tar.bz2"