summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28492eadb33cf1ec43b0b6f82f41f30184a7dc64 (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
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>
# Contributor: Jan Pacner
# Contributor: dumblob <dumblob@gmail.com>

pkgname=packer-git
pkgver=325.400c655
pkgrel=1
pkgdesc='Bash wrapper for pacman and aur'
arch=('any')
url="https://github.com/gavinhungry/packer"
license=('GPL3')
depends=('bash' 'curl' 'grep' 'pacman' 'sed' 'jshon')
makedepends=('git')
conflicts=('packer')
source=("${pkgname}::git+${url}.git#branch=master")
sha256sums=('SKIP')

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

package() {
  cd "${pkgname}"

  install -Dm755 packer "${pkgdir}"/usr/bin/packer
  install -Dm644 packer.8 "${pkgdir}"/usr/share/man/man8/packer.8
}