aboutsummaryrefslogtreecommitdiffstats
path: root/main/cvechecker/APKBUILD
blob: 2f1d30043e1cd31e428b0ab828f4bf6ebf32b6ba (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
44
45
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cvechecker
pkgver=3.8
pkgrel=2
pkgdesc="A local CVE checker tool"
url="https://github.com/sjvermeu/cvechecker/wiki"
arch="all"
license="GPL-3.0"
depends="gawk wget libxslt"
makedepends="libconfig-dev sqlite-dev libressl-dev mariadb-connector-c-dev argp-standalone"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
pkggroups="$pkgname"
source="https://raw.githubusercontent.com/wiki/sjvermeu/$pkgname/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	export LIBS="-largp"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-sqlite3 \
		--enable-mysql
	make
}
package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/var/cvechecker &>/dev/null
	chgrp -R $pkggroups "$pkgdir"/var/cvechecker/* &>/dev/null
	chmod -R g+w "$pkgdir"/var/cvechecker &>/dev/null
}

sha512sums="c7d83592d708d2d7b218f97f5780a442014793163260ba0a3d3aefb329c4e1b24924a461ca37df0d7d3b3e17ac16b29a1eed57169316c9d8cbf780550462f948  cvechecker-3.8.tar.gz"