1
0
httpprocprobed/build/archlinux/PKGBUILD

27 lines
820 B
Bash
Raw Normal View History

# Maintainer: Alexander "Arav" Andreev <me@arav.su>
2022-10-10 00:07:02 +04:00
pkgname=httpprocprobed
pkgver=3.0.0
2022-10-10 00:07:02 +04:00
pkgrel=1
pkgdesc="HTTPProcProbeD hands out an HTTP endpoint to get if processes are running."
2022-10-10 00:07:02 +04:00
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://git.arav.su/Arav/httpprocprobed"
2022-10-10 00:07:02 +04:00
license=('MIT')
makedepends=('go>=1.17')
backup=('etc/httpprocprobed.json')
source=("https://git.arav.su/Arav/httpprocprobed/archive/$pkgver.tar.gz")
2022-10-10 00:07:02 +04:00
md5sums=('SKIP')
build() {
cd "$srcdir/$pkgname"
export GOPATH="$srcdir"/gopath
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
make VERSION=$pkgver DESTDIR="$pkgdir/" PREFIX="/usr"
2022-10-10 00:07:02 +04:00
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir/" PREFIX="/usr" install
2022-10-10 00:07:02 +04:00
}