summaryrefslogtreecommitdiff
path: root/pcr/packer-git/PKGBUILD
blob: e173bfe5ef7fec92f4196248c22c7f1353986609 (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
35
36
37
38
39
40
41
# Maintainer (Arch): Kyle Keen <keenerd@gmail.com>
# Contributor (Arch): Gilrain <pierre.buard+aur gmail com>
# Contributor (Arch): bruenig
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Aurélien DESBRIÈRES <aurelien@hackers.camp>

_pkgname=packer
pkgname=packer-git
pkgver=r242.ed928f8
pkgrel=1.parabola1
pkgdesc="Bash wrapper for pacman and pur"
url="http://github.com/keenerd/packer"
license=("GPL3")
arch=('any')
makedepends=('git')
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon' 'expac')
optdepends=('sudo: install and update packages as non-root'
            'customizepkg: apply customizepkg modifications')
replaces=($_pkgname)
conflicts=($_pkgname)
provides=($_pkgname)
#source=('git://github.com/keenerd/packer.git')
source=('git+https://github.com/keenerd/packer.git'
        'pur-support.patch')
md5sums=('SKIP'
         '8818f9d741539da4fadf9dfb1a1c02c6')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
 cd $_pkgname
 patch -Np1 -i ../pur-support.patch
}

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