Debian Codegraph @

madrisan-nagios-plugins-linux/nagios-plugins-linux/packages/specs/APKBUILD.in

raw
1 # Contributor:
2 # Maintainer: Davide Madrisan <[email protected]>
3 pkgname=@package@
4 pkgver=@version@
5 pkgrel=@release@
6 pkgdesc="Nagios Plugins for Linux"
7 url="https://github.com/madrisan/nagios-plugins-linux"
8 arch="all"
9 license="GPL-3.0-or-later"
10 depends=""
11 makedepends="autoconf automake bzip2 curl-dev file gcc libtool linux-headers make m4 musl-dev tar xz"
12 install=""
13 subpackages=""
14 source="$pkgname-$pkgver.tar.xz"
15 builddir="$srcdir/$pkgname-$pkgver"
16
17 prepare() {
18 cd "$builddir"
19 autoreconf -vif || return 1
20 }
21
22 build() {
23 cd "$builddir"
24 ./configure \
25 --build=$CBUILD \
26 --host=$CHOST \
27 --prefix=/usr \
28 --libexecdir=/usr/lib/nagios/plugins \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --localstatedir=/var
32 make
33 }
34
35 check() {
36 cd "$builddir"
37 make check
38 }
39
40 package() {
41 make DESTDIR="$pkgdir" install
42 }
43
44 sha512sums="@sha512sum@ @package@-@[email protected]"