summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e389dfbe62402b3bdeabefde404eea63bf8329df (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
# Maintainer: Matthew Geskey <vitrvvivs.architectus@gmail.com>

pkgname=python-yacker-git
pkgver=2019.1.r0.ge959885
pkgrel=1
pkgdesc="A YAML wrapper around Packer"
arch=('any')
url="https://gitlab.com/matilda.peak/yacker"
source=('git+https://gitlab.com/matilda.peak/yacker.git')
md5sums=('SKIP')
depends=('packer' 'python' 'python-pyaml')
makedepends=('python-setuptools')

_name=yacker

pkgver() {
  cd "$_name"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd "$srcdir/$_name"
  python setup.py build
}

package() {
  cd "$srcdir/$_name"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et: