Add the git-flow package
The "git flow" way to organize branches in a large team has gained some popularity in the recent years. Let's package it for use with MSys2. See http://nvie.com/posts/a-successful-git-branching-model/ for more details about this branching model. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
29d42ec871
commit
bf631bceda
45
git-flow/PKGBUILD
Normal file
45
git-flow/PKGBUILD
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Maintainer: Johannes Schindelin <johannes.schindelin@gmx.de>
|
||||||
|
|
||||||
|
_realname=git-flow
|
||||||
|
pkgname=("${_realname}")
|
||||||
|
pkgver=0.4.1.108.g15aab26
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Git extensions to provide high-level repository operations for Vincent Driessen's branching model"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
license=('BSD')
|
||||||
|
depends=('git' 'util-linux')
|
||||||
|
url="http://nvie.com/posts/a-successful-git-branching-model/"
|
||||||
|
source=("${_realname}"::"git+https://github.com/nvie/gitflow.git#branch=develop")
|
||||||
|
sha1sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${srcdir}/${_realname}"
|
||||||
|
|
||||||
|
# Need to create sane tags to allow `git describe` to work
|
||||||
|
for t in $(git tag -l | grep '^[0-9]')
|
||||||
|
do
|
||||||
|
git rev-parse --quiet --verify v$t >/dev/null ||
|
||||||
|
git tag v$t $t^2
|
||||||
|
done
|
||||||
|
|
||||||
|
git describe --tags |
|
||||||
|
sed -e 's/^v//' -e 'y/-/./'
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare () {
|
||||||
|
cd "${srcdir}/${_realname}"
|
||||||
|
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
# Make sure that gitflow-shFlags is handled properly
|
||||||
|
test true = "$(git config core.symlinks)" || {
|
||||||
|
git config core.symlinks true
|
||||||
|
git reset --hard
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${_realname}"
|
||||||
|
|
||||||
|
make prefix="${pkgdir}/usr/" install
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user