# Maintainer: Cyrinux # Maintainer: Quey-Liang Kao pkgname=openscap pkgver=1.2.17 pkgrel=2 pkgdesc="Open Source Security Compliance Solution" # i686 is theoretically bulitable, if anyone needs it arch=('x86_64') url="https://www.open-scap.org/" license=('GPL') # The official site suggested the dependencies in terms of Fedora's rpm. # Some of the corresponding packages in Arch remain unclear, which are listed # here for now. # packege missing: libselinux-devel depends=('swig' 'python' 'acl' 'libcap' 'curl' 'libgcrypt' 'libxml2' 'libxslt' 'libldap' 'pcre' 'bzip2' 'procps-ng' 'gconf' 'perl' 'perl-xml-parser' 'perl-xml-xpath') optdepends=() makedepends=('doxygen' 'automake' 'acl') source=("https://github.com/OpenSCAP/openscap/releases/download/$pkgver/$pkgname-$pkgver.tar.gz") md5sums=('56d11d9bd3d61b6edf7368636344ff72') prepare() { cd "$pkgname-$pkgver" # This is for Red Hat/Fedora family, we don't need it. sed -e "s/^.*default_cpe.*$/\\\/" -i $srcdir/$pkgname-$pkgver/tests/API/XCCDF/Makefile.am # The upstream has fixed some of the issues, but more check needed # patch -f -p1 -i "$srcdir/fails_and_fix.patch" # patch -f -p2 -i "$srcdir/xpath.patch" } build() { cd "$pkgname-$pkgver" CPPFLAGS="-I/usr/include/python3.7m" ./configure --disable-valgrind --disable-python --enable-python3 --prefix=/usr make # -j4 } # Notice: It may take a long time to complete the check. # check() { # cd "$pkgname-$pkgver" # make check #} package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir/" install # That's what the guideline says. mv $pkgdir/usr/libexec/* $pkgdir/usr/lib/$pkgname/ rm -fr $pkgdir/usr/libexec/ }