summaryrefslogtreecommitdiff
path: root/pcr/holo/PKGBUILD
blob: 58c9606af33541922dc752f81374121534c5eba2 (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
42
43
# Maintainer (AUR): Stefan Majewsky <majewsky@gmx.net>
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

# Upstream info
pkgname='holo'
pkgver=1.3.1
pkgdesc='Minimalistic configuration management'
url='http://holocm.org'
license=('GPL3')

# package info
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
depends=('git')
makedepends=('go' 'perl')
provides+=(
  "holo-files=$pkgver"
  'HOLO_API_VERSION=3'
)
backup=(
  'etc/holorc'
  'etc/holorc.d/10-files'
)

source=("$pkgname-$pkgver.tar.gz::https://github.com/holocm/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('1ec8795df0a5a579bdcf88875db10ccb016044865096fdbf38d6ae6ed590aa63')

options=('!strip') # binaries are already stripped inside the Makefile

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}