aboutsummaryrefslogtreecommitdiffstats
path: root/main/git
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2013-11-27 11:50:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-27 20:44:21 +0000
commitd677f1d5e4ee4faeab7a48cbbb97ba91acf8bfa2 (patch)
tree601cdcaa8584385d4209a81b154d46afd2582a1a /main/git
parenta8d3f77003ae46f6268c0c35baadeed971865a82 (diff)
downloadaports-d677f1d5e4ee4faeab7a48cbbb97ba91acf8bfa2.tar.bz2
aports-d677f1d5e4ee4faeab7a48cbbb97ba91acf8bfa2.tar.xz
main/git: bash-completion subpackage
Diffstat (limited to 'main/git')
-rw-r--r--main/git/APKBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index c539da6168..cdad44cbdd 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -1,14 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=git
pkgver=1.8.4.3
-pkgrel=0
+pkgrel=1
pkgdesc="A distributed version control system"
url="http://git.or.cz/"
arch="all"
license="GPL2+"
depends=
replaces="git-perl"
-subpackages="$pkgname-doc $pkgname-svn $pkgname-perl"
+subpackages="$pkgname-doc $pkgname-svn $pkgname-perl $pkgname-bash-completion:completion"
makedepends="zlib-dev openssl-dev curl-dev expat-dev perl-dev python-dev
pcre-dev"
source="http://git-core.googlecode.com/files/git-$pkgver.tar.gz
@@ -75,6 +75,16 @@ svn() {
mv "$pkgdir"/usr/libexec/git-core/git-svn "$subpkgdir"/usr/libexec/git-core
}
+completion() {
+ depends=""
+ pkgdesc="Bash completion script for git"
+ arch="noarch"
+ replaces=""
+
+ install -Dm644 "$srcdir"/git-$pkgver/contrib/completion/git-completion.bash \
+ "$subpkgdir"/usr/share/bash-completion/completions/git
+}
+
md5sums="ec3f9007cc1542e8d94ccff1cf8882f5 git-1.8.4.3.tar.gz
178d2d10f9740fac4a8af0155368b3d9 0001-config-add-_cb-suffix-to-callback-functions.patch
e63a201556c4f089de790805c09a2e5b bb-tar.patch