diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-14 19:20:46 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-14 19:20:46 -0400 |
commit | f7fd1d99d87f11c41cf09f881b1aeb950a3c8e13 (patch) | |
tree | 95910fb3078e1136e35aaa6d9f0f251cdb4ca1a8 /pcr/packer | |
parent | 09c1bb45d89c78a9fd80c7a500cb29a0908dc668 (diff) | |
parent | cd640e7ca0a8968edf887d03db8224334f663e84 (diff) |
Merge branch 'master' of git://projects.parabolagnulinux.org/abslibre
Diffstat (limited to 'pcr/packer')
-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" } |