# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=scap-security-guide pkgver=0.1.80 pkgrel=1 pkgdesc='Security compliance content in SCAP, Bash, Ansible, and other formats.' arch=('any') groups=('blackarch' 'blackarch-automation' 'blackarch-defensive' 'blackarch-scanner') url='https://www.open-scap.org/security-policies/scap-security-guide/' license=('BSD-3-Clause') depends=() makedepends=('git') optdepends=('openscap' 'scap-workbench') source=("https://github.com/ComplianceAsCode/content/releases/download/v$pkgver/$pkgname-$pkgver.zip") sha512sums=('ddaf6d35cf30ce8431ae401a855855a96cc53b7ae78afa34225f3df060549ea45874e7e9b192695de0863eec77ce4822e9d57fd3c4047759317de9c99cc6df4c') pkgver() { git ls-remote --sort=v:refname -t --refs \ 'https://github.com/ComplianceAsCode/content' 'v*' | grep -v 'InitialDraft' | sed -e 's/.*v//' -e '$!d' } package() { cd "$pkgname-$pkgver" install -dm 755 "$pkgdir/usr/share/$pkgname/" cp -a ./* "$pkgdir/usr/share/$pkgname/" }