summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c44869b6253a5400080c2183d42e275d8a3ee719 (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
33
34
# Maintainer: Jan Pacner
# Contributor: dumblob <dumblob@gmail.com>

pkgname=packer-git
pkgver=302.e8ebd42
pkgrel=1
pkgdesc='Bash wrapper for pacman and aur'
url="https://github.com/gavinhungry/packer"
license=('GPL3')
arch=('any')
source=("$pkgname::git+https://github.com/gavinhungry/packer")
sha256sums=('SKIP')
# most of depends are not needed, they're present only for clarity
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon')
makedepends=('git')
optdepends=('sudo: install and update packages as non-root'
            'customizepkg: apply customizepkg modifications')
provides=('packer')
conflicts=('packer')

build() {
  true
}

pkgver() {
  cd "$pkgname"
  echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
  cd "$pkgname"
  install -D -m 755 packer "$pkgdir/usr/bin/packer"
  install -D -m 644 packer.8 "$pkgdir/usr/share/man/man8/packer.8"
}