aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bash-completion/APKBUILD
blob: 0ee9339d09b76b968418a87e19302f92381fadcd (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer:
pkgname=bash-completion
pkgver=1.3
pkgrel=0
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://bash-completion.alioth.debian.org/files/bash-completion-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
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 DESTDIR="$pkgdir" install || return 1
}

md5sums="a1262659b4bbf44dc9e59d034de505ec  bash-completion-1.3.tar.bz2"