aports/testing/sigma/APKBUILD
2023-08-30 05:23:14 +00:00

33 lines
1.1 KiB
Plaintext

# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=sigma
pkgver=0.22.1
pkgrel=1
pkgdesc="Generic Signature Format for SIEM Systems"
url="https://github.com/sigmahq/sigma"
license="LGPL-3.0-only"
arch="noarch"
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
depends="python3"
_pkg=sigmatools
subpackages="$pkgname-pyc"
source="sigma-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/$_pkg/$_pkg-$pkgver.tar.gz
remove_data_file_installation.patch"
builddir="$srcdir/$_pkg-$pkgver"
options="!check"
build() {
python3 -m build --wheel --no-isolation
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 config/*.yml -t "$pkgdir/etc/sigma/"
install -Dm644 config/generic/*.yml -t "$pkgdir/etc/sigma/"
}
sha512sums="
77961ec3bf67ff4d55cacfaf1370ff94bff3a5fd6a544561c684c3af1e910248c6183c2be6a0b5ad948434271822c1e75e3d1a1fa6dfd4d0a19be594f795f027 sigma-0.22.1.tar.gz
0d8c22833d266f9cb16163f4a83a4fa31d50718a5587d63fe483e7af5d1cfc0c649dcb8369fa5da31b82a6c27159dec3581e28a2f24797f2bb82d12ad890674e remove_data_file_installation.patch
"