diff options
author | Alec S | 2015-08-01 00:12:52 -0500 |
---|---|---|
committer | Alec S | 2015-08-01 00:12:52 -0500 |
commit | 1085dc80b1d1520ca1cfbc76e6c7efbf99c69de4 (patch) | |
tree | 0f5f24b909ae53eefacde5013fcad1170696eab9 | |
download | aur-1085dc80b1d1520ca1cfbc76e6c7efbf99c69de4.tar.gz |
Add initial PKGBUILD
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7c77142ae9eb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = git-town + pkgdesc = A git extension for generic high-level git workflow support + pkgver = 0.6.63.gde450dd15e07 + pkgrel = 1 + url = https://github.com/Originate/git-town + arch = x86_64 + arch = i686 + license = MIT + depends = bash + depends = git + depends = dialog + source = git-town::git://github.com/Originate/git-town#branch=master + md5sums = SKIP + +pkgname = git-town + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f20645cd8178 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Allonsy < linuxbash8 [at@at] gmail [dot.dot] com > +pkgname=git-town +pkgver=0.6.63.gde450dd15e07 +pkgrel=1 +pkgdesc="A git extension for generic high-level git workflow support" +url="https://github.com/Originate/git-town" +arch=('x86_64' 'i686') +license=('MIT') +depends=('bash' 'git' 'dialog') +source=("$pkgname"::'git://github.com/Originate/git-town#branch=master') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname" + git describe --tags --abbrev=12 | sed -e 's:v::' -e 's/-/./g' +} + +package() { + cd "$srcdir/$pkgname" + mkdir -p $pkgdir/usr/lib/git-town + chmod 755 $pkgdir/usr/lib + mkdir -p $pkgdir/usr/bin + cp -r src/* $pkgdir/usr/lib/git-town + cd src + + for comm in * + do + if [ -f $comm ] + then + echo "#!/bin/bash +/usr/lib/git-town/$comm" > $pkgdir/usr/bin/$comm + chmod 755 $pkgdir/usr/bin/$comm + fi + done + + cd .. + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + mkdir -p $pkgdir/usr/share/man/man1 + cp -r man $pkgdir/usr/share/ +} + |