aboutsummaryrefslogtreecommitdiffstats
path: root/main/bash-completion/APKBUILD
blob: 42c12430093869c348705c93261e111a83e8a4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=bash-completion
pkgver=2.1
pkgrel=3
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/${pkgname}/${pkgname}_${pkgver}.orig.tar.bz2"

# Provided with util-linux and networkmanager:
_conflicting="
	cal
	chsh
	dmesg
	eject
	hd
	hexdump
	hwclock
	ionice
	look
	ncal
	newgrp
	renice
	rtcwake
	su
	nmcli
	umount
	mount
	"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| 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 -f $c || return 1
	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"