summaryrefslogtreecommitdiff
path: root/pcr/packer/PKGBUILD
blob: f2ea54a76a6d478e7e70c54286597b0966711190 (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
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=packer
pkgver=20120302
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
url="http://github.com/bruenig/packer"
license="GPL"
arch=('any')
makedepends=('git')
depends=('grep' 'sed' 'bash' 'curl' 'pacman' 'jshon')
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

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"
}