diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-04-29 10:14:57 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-04-29 10:14:57 +0000 |
commit | 7dc7dfaf5ee97c22fdb1ce15f6702fb9c8c324cd (patch) | |
tree | 5a4ca5daecd36ab7d7197fdae2aa110e04f01048 | |
parent | d88475dfc602c758764683b310eef7117d216095 (diff) | |
download | aports-7dc7dfaf5ee97c22fdb1ce15f6702fb9c8c324cd.tar.bz2 aports-7dc7dfaf5ee97c22fdb1ce15f6702fb9c8c324cd.tar.xz |
main/git: subtree subpackage
-rw-r--r-- | main/git/APKBUILD | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD index 612ab05709..8280137b02 100644 --- a/main/git/APKBUILD +++ b/main/git/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=git pkgver=1.9.2 -pkgrel=0 +pkgrel=1 pkgdesc="A distributed version control system" url="http://git.or.cz/" arch="all" @@ -20,6 +20,8 @@ subpackages="$pkgname-doc $pkgname-p4 $pkgname-daemon $pkgname-gitweb + $pkgname-subtree + $pkgname-subtree-doc:subtree_doc $pkgname-perl:_git_perl " @@ -159,6 +161,27 @@ completion() { "$subpkgdir"/usr/share/bash-completion/completions/git } +subtree() { + depends="git=$pkgver-r$pkgrel" + pkgdesc="Split git repository into subtrees" + arch="noarch" + replaces="" + + cd "$srcdir"/$pkgname-$pkgver/contrib/subtree + make prefix=/usr DESTDIR="$pkgdir" || return 1 + make install prefix=/usr DESTDIR="$subpkgdir" +} + +subtree_doc() { + depends="" + pkgdesc="Split git repository into subtrees (documentation)" + arch="noarch" + replaces="" + + cd "$srcdir"/$pkgname-$pkgver/contrib/subtree + make install-man prefix=/usr DESTDIR="$subpkgdir" +} + # catch-the-rest of stuff that needs perl _git_perl() { depends="git=$pkgver-r$pkgrel perl" |