summaryrefslogtreecommitdiff
path: root/pcr/packer/PKGBUILD
blob: 5354d0192868b34ca73ff25b78e49bd66c1eaf60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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=20131001
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
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' 'expac')
optdepends=('sudo: install and update packages as non-root'
            'customizepkg: apply customizepkg modifications')

source=('git+https://github.com/keenerd/packer.git')


pkgver() {
    cd "$pkgname"
    git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

package() {
  install -Dm755 "$srcdir/$pkgname/packer" "$pkgdir/usr/bin/packer"
  install -Dm644 "$srcdir/$pkgname/packer.8" "$pkgdir/usr/share/man/man8/packer.8"
}