aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2021-02-09 01:34:15 +0100
committerMichał Polański <michal@polanski.me>2021-02-09 01:34:15 +0100
commita0396dbec883da8a0b7fcb73fb69d61a98b6c006 (patch)
tree5115ed8b632260dd3a98e436275040e78683c2bc
parent550dacdd95ff9935eb73a16ee28c71edc1ddcca3 (diff)
downloadaports-a0396dbec883da8a0b7fcb73fb69d61a98b6c006.tar.gz
aports-a0396dbec883da8a0b7fcb73fb69d61a98b6c006.tar.bz2
aports-a0396dbec883da8a0b7fcb73fb69d61a98b6c006.tar.xz
main/git: use default_bashcomp function
-rw-r--r--main/git/APKBUILD15
1 files changed, 5 insertions, 10 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index 1d0366acb5..96601133c9 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -37,7 +37,7 @@ makedepends="zlib-dev openssl-dev curl-dev expat-dev perl-dev python3-dev
# note that order matters
subpackages="$pkgname-doc
$pkgname-dbg
- $pkgname-bash-completion:completion:noarch
+ $pkgname-bash-completion
perl-$pkgname-svn:_perl_git_svn:noarch
perl-$pkgname:_perl_git:noarch
$pkgname-svn
@@ -101,8 +101,12 @@ package() {
install install-man
mkdir -p "$pkgdir"/var/git
+
install -Dm755 "$srcdir"/git-daemon.initd "$pkgdir"/etc/init.d/git-daemon
install -Dm644 "$srcdir"/git-daemon.confd "$pkgdir"/etc/conf.d/git-daemon
+
+ install -Dm644 contrib/completion/git-completion.bash \
+ "$pkgdir"/usr/share/bash-completion/completions/git
}
_perl_git_svn() {
@@ -203,15 +207,6 @@ gitweb() {
mv "$pkgdir"/$_gitcoredir/git-instaweb "$subpkgdir"$_gitcoredir/
}
-completion() {
- pkgdesc="Bash completion for $pkgname"
- depends=""
- install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
-
- install -Dm644 "$builddir"/contrib/completion/git-completion.bash \
- "$subpkgdir"/usr/share/bash-completion/completions/git
-}
-
subtree() {
depends="git=$pkgver-r$pkgrel"
pkgdesc="Split git repository into subtrees"