diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-10 19:08:22 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-10 19:08:22 +0200 |
commit | d3615a2d9bf28c130b3c1f82c93f152d54c4816c (patch) | |
tree | 113c98f9a0417caf976ed2c0a2589a6b31c962b4 /pcr/packer/PKGBUILD | |
parent | 58e662a21a1c630310cd84a83c9330d993e03f7c (diff) | |
download | abslibre-d3615a2d9bf28c130b3c1f82c93f152d54c4816c.tar.gz abslibre-d3615a2d9bf28c130b3c1f82c93f152d54c4816c.tar.bz2 abslibre-d3615a2d9bf28c130b3c1f82c93f152d54c4816c.zip |
packer
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" } |