aboutsummaryrefslogtreecommitdiffstats
path: root/main/cvechecker/APKBUILD
blob: 9db7fb581420dbf58d04dcc00f8fb98d0db7453f (plain) (blame)
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
46
47
48
49
50
51
52
53
# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cvechecker
pkgver=4.0
pkgrel=0
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 mariadb-connector-c-dev
	argp-standalone autoconf automake libbsd-dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
pkggroups="$pkgname"
source="$pkgname-$pkgver.zip::https://github.com/sjvermeu/cvechecker/archive/cvechecker-$pkgver.zip"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	cd "$builddir"
	aclocal && \
	autoheader && \
	automake -ac && \
	autoreconf --install
}

build() {
	export LIBS="-largp"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-sqlite3 \
		--enable-mysql
	make
}

check() {
	make check
}

package() {
	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="f2c4e8ca5cbeed00b543b64e9173c64bd7d423e4cdda0731e7e79a85b81468f066bbd9903c630b58342c24e19c11b8a6b9f4c7fafe109c129d6b0baadb65aeb2  cvechecker-4.0.zip"