blob: f89d2dbb90f781095b141e2745c114e8231464ef (
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
|
# Maintainer: Devilish Crow <devilishcrow@mail14.serv00.net>
pkgname=openscap-git
pkgver=1.4
pkgrel=1
pkgdesc="NIST Certified SCAP 1.2 toolkit"
arch=('x86_64')
url="https://www.open-scap.org/tools/openscap-base/"
license=('LGPL-2.1-only')
depends=('dbus' 'acl' 'util-linux' 'libcap' 'curl' 'libgcrypt' 'libxml2' 'libxslt'
'attr' 'openldap' 'pcre2' 'perl' 'python3' 'rpm' 'swig' 'bzip2' 'yaml-cpp' 'xmlsec')
makedepends=('git' 'cmake' 'gcc')
provides=('openscap')
conflicts=('openscap')
source=("git+https://github.com/OpenSCAP/openscap.git")
sha256sums=('SKIP')
pkgver() {
cd openscap
git describe --long --tags | sed 's/-/./g' | sed 's/^v//'
}
build() {
local cmake_options=(
-B build
-S openscap
-W no-dev
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
)
cmake "${cmake_options[@]}"
cmake --build build
cd build
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|