diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-11 22:12:54 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-11 22:12:54 -0300 |
commit | 67320d963187273bd845a938a64460c3ee0b34ec (patch) | |
tree | b9df2cab50cf24e92d5558bb8bf24fa0b07ddac4 /pcr/packer/PKGBUILD | |
parent | 78766e0875947c13a97bc958cff89abc5d2f6b1b (diff) | |
parent | d79b0b70c7951aa68158d1957dfe6130cf9bf63e (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/packer/PKGBUILD')
-rw-r--r-- | pcr/packer/PKGBUILD | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/pcr/packer/PKGBUILD b/pcr/packer/PKGBUILD index f2ea54a76..5354d0192 100644 --- a/pcr/packer/PKGBUILD +++ b/pcr/packer/PKGBUILD @@ -1,36 +1,32 @@ -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> +# Contributor (Arch) : Kyle Keen <keenerd@gmail.com> +# Contributor (Arch) : Gilrain <pierre.buard+aur gmail com> +# Contributor (Arch) : bruenig +# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=packer -pkgver=20120302 +pkgver=20131001 pkgrel=1 pkgdesc="Bash wrapper for pacman and aur" -url="http://github.com/bruenig/packer" -license="GPL" +url="http://github.com/keenerd/packer" +license=("GPL3") arch=('any') +source=("https://repo.parabolagnulinux.org/other/~aurelien/packer/packer-${pkgver}.tar.gz") + makedepends=('git') -depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon') +depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon' 'expac') optdepends=('sudo: install and update packages as non-root' 'customizepkg: apply customizepkg modifications') -_gitroot='https://github.com/bruenig/packer.git' -_gitname='packer' -# Xavion is a non-contributing idiot +source=('git+https://github.com/keenerd/packer.git') + + +pkgver() { + cd "$pkgname" + git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//' +} -build() { - cd "$srcdir" - - msg "Connecting to github GIT server...." - - if [ -d "$srcdir/$_gitname" ] ; then - cd $_gitname && git pull origin - else - git clone "$_gitroot" - cd $_gitname - fi - - mkdir -p "$pkgdir/usr/bin/" - mkdir -p "$pkgdir/usr/share/man/man8/" - install -m 755 packer "$pkgdir/usr/bin/packer" - install -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8" +package() { + install -Dm755 "$srcdir/$pkgname/packer" "$pkgdir/usr/bin/packer" + install -Dm644 "$srcdir/$pkgname/packer.8" "$pkgdir/usr/share/man/man8/packer.8" } |