summaryrefslogtreecommitdiff
path: root/pcr/gitflow/PKGBUILD
blob: b620422623d80a75097073085a2d73eea84601c3 (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
# Maintainer: Techlive Zheng <techlivezheng@gmail.com>
# Contributor: Ernie Brodeur <ebrodeur@ujami.net>

pkgname=gitflow
pkgver=0.4.1
pkgrel=3
pkgdesc='Extend git with the Gitflow branching model.'
arch=('any')
url='https://github.com/nvie/gitflow'
license=('BSD')
depends=('git' 'shflags')
source=("https://github.com/nvie/gitflow/tarball/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=('adc7a52512052938a9b42ac8bd7d91dd')

prepare() {
  cd $srcdir/`find . -maxdepth 1 -type d -name nvie\*`
  sed -i "s:\$GITFLOW_DIR/gitflow-shFlags:/usr/share/lib/shflags/shflags.sh:" git-flow
}

package() {
  cd $srcdir/`find . -maxdepth 1 -type d -name nvie\*`

  install -d -m 0755 $pkgdir/usr/lib/git-core
  install -m 0755 git-flow $pkgdir/usr/lib/git-core
  install -m 0644 git-flow-feature \
                  git-flow-hotfix \
                  git-flow-release \
                  git-flow-support \
                  git-flow-version \
                  git-flow-init \
                  gitflow-common \
                  $pkgdir/usr/lib/git-core/
}
md5sums=('adc7a52512052938a9b42ac8bd7d91dd')