diff options
-rw-r--r-- | pcr/gitflow/PKGBUILD | 34 | ||||
-rw-r--r-- | pcr/shflags/PKGBUILD | 31 |
2 files changed, 65 insertions, 0 deletions
diff --git a/pcr/gitflow/PKGBUILD b/pcr/gitflow/PKGBUILD new file mode 100644 index 000000000..b62042262 --- /dev/null +++ b/pcr/gitflow/PKGBUILD @@ -0,0 +1,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') diff --git a/pcr/shflags/PKGBUILD b/pcr/shflags/PKGBUILD new file mode 100644 index 000000000..c4f3ee7a9 --- /dev/null +++ b/pcr/shflags/PKGBUILD @@ -0,0 +1,31 @@ +#Maintainer max_meyer +pkgname=shflags +pkgver=1.0.3 +pkgrel=1 +pkgdesc="Shell Flags (shFlags) is a library written to greatly simplify the handling of command-line flags" +arch=(any) +url="http://code.google.com/p/shflags/" +license=('LGPL') +depends=(sh) +provides=(shflags) +optdepends=(bash zsh dash ksh) +options=(zipman) +source=(http://shflags.googlecode.com/files/$pkgname-$pkgver.tgz{,.sig}) +md5sums=('b4d7133696ec05b71b27d8df5e278f0f' + 'SKIP') + +package() { + src="$srcdir/$pkgname-$pkgver/src/" + dst="$pkgdir/usr/share/lib/shflags" + mkdir -p "$dst" + + if [ -f "$src/shflags" ]; then + cp "$src/shflags" "$dst/shflags.sh" + else + msg "Warning shflags not found" + exit 1 + fi + +} + +# vim:set ts=2 sw=2 et: |