summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2c1ddc1e106b0b132f183bcb9c467d7810525c7 (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
# Maintainer: Bailey Kasin <bailey@gingertechnology.net> (https://angrysysadmins.tech)

pkgname=gogios
pkgver=3.0.0.r0.g041f5a1
pkgrel=2
pkgdesc="Checks to see if required services are still running on important machines."
arch=('x86_64')
url="https://github.com/bkasin/gogios"
license=('MIT')

#makedepends=('go' 'make')
optdepends=(
	'nmap'
	'nginx'
	'sqlite'
	'gogios-plugins')

install=${pkgname}.install

source=("$pkgname::git+https://github.com/bkasin/gogios.git#branch=master")
sha256sums=('SKIP')

provides=("$pkgname")
conflicts=("$pkgname-bin")

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

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

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