summaryrefslogtreecommitdiff
path: root/testing/openscap/APKBUILD
blob: a2dc3e63375ce9a70f3da3ae0e6f778df8eb4d98 (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
46
47
48
49
50
51
52
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openscap
pkgver=1.3.6
pkgrel=0
pkgdesc="NIST Certified SCAP 1.2 toolkit"
url="https://www.open-scap.org/tools/openscap-base/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="cmake python3-dev dbus-dev dbus-glib-dev bash libselinux-dev
	curl-dev openssl1.1-compat-dev libgcrypt-dev acl-dev libblkid libcap-dev libxml2-dev
	libxslt-dev openldap-dev pcre2-dev perl-xml-parser perl-xml-xpath perl-dev
	rpm-dev swig bzip2-dev asciidoc fts-dev doxygen procps-dev
	libbz2 util-linux-dev nss-dev xmlsec-dev"
options="!check"
subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion"
source="https://github.com/OpenSCAP/openscap/releases/download/$pkgver/openscap-$pkgver.tar.gz
	fix-ppc64le-path_max.patch
	path_mounted.patch
	"

prepare() {
	default_prepare
	mkdir -p build
}

build() {
	cd "$builddir"/build
	export LIBS=-lfts
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DENABLE_DOCS=ON \
		-DENABLE_PERL=OFF \
		-DENABLE_TESTS=OFF\
	..
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install

	install -Dm644 "$builddir"/dist/bash_completion.d/oscap \
		"$pkgdir"/usr/share/bash-completion/completions/$pkgname
}

sha512sums="
5e4d6c4addc15b2a0245b5caef80fda3020f1cac83ed4aa436ef3f1703d1d761060c931c2536fa68de7ad5bab002b79c8b2d1e5f7695d46249f4562f5a1569a0  openscap-1.3.6.tar.gz
0d8e5eb492b4439b82e35e4a87a2030f9aeff3173bda60d8ce57584fa7d7dda970ad35099e45fe46a7e135d9a55d6c2ced0a8b180556e37c7a9926de28244133  fix-ppc64le-path_max.patch
f2157d6b1d31affe16edb184a287b69d28808123f1cc26a5a4238040d935517b307772b1f2d66271b8ee99b59a4d204930f9147b78478c83c36c7fc8718ec1d9  path_mounted.patch
"