summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD36
2 files changed, 32 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7d7e287155..009be7babfb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,20 @@
pkgbase = sigma
pkgdesc = Generic Signature Format for SIEM Systems
- pkgver = 0.19.1
+ pkgver = 0.22.1
pkgrel = 1
- url = https://github.com/Neo23x0/sigma
+ url = https://github.com/sigmahq/sigma
arch = any
license = LGPL3
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
- depends = python-yaml
- depends = python-argparse
- depends = python-urllib3
+ makedepends = python-wheel
+ depends = python>=3.8
+ depends = python-progressbar
depends = python-pymisp
- source = sigma-0.19.1.tar.gz::https://github.com/Neo23x0/sigma/archive/0.19.1.tar.gz
- sha256sums = 344fce7b04844f84dbbf793d2aaec37f49ff030a9595399e09042bac0c743d71
+ depends = python-ruamel-yaml
+ depends = python-yaml
+ source = sigma-0.22.1.tar.gz::https://files.pythonhosted.org/packages/source/s/sigmatools/sigmatools-0.22.1.tar.gz
+ sha256sums = 17c6b5c46eedd651cf32abcea71e4851905e6cd7595c626342a9c5734f69ca71
pkgname = sigma
-
diff --git a/PKGBUILD b/PKGBUILD
index 362dc05eefa..2a72d8835fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,33 +2,39 @@
# Contributor: Alexander Bruegmann <mail at abruegmann dot eu>
pkgname=sigma
-pkgver=0.19.1
+_pkg=sigmatools
+pkgver=0.22.1
pkgrel=1
pkgdesc="Generic Signature Format for SIEM Systems"
arch=('any')
-url="https://github.com/Neo23x0/sigma"
+url="https://github.com/sigmahq/sigma"
license=('LGPL3')
-depends=('python-yaml' 'python-argparse' 'python-urllib3' 'python-pymisp')
-makedepends=('python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('344fce7b04844f84dbbf793d2aaec37f49ff030a9595399e09042bac0c743d71')
+depends=(
+ 'python>=3.8'
+ 'python-progressbar'
+ 'python-pymisp'
+ 'python-ruamel-yaml'
+ 'python-yaml')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/$_pkg/$_pkg-$pkgver.tar.gz")
+sha256sums=('17c6b5c46eedd651cf32abcea71e4851905e6cd7595c626342a9c5734f69ca71')
prepare() {
- cd "${pkgname}-${pkgver}"/tools
+ ## we'll install the data files ourselves
+ cd "$_pkg-$pkgver"
+ sed -i '50,52d' setup.py
}
build() {
- cd "${pkgname}-${pkgver}"/tools
- python setup.py build
+ cd "$_pkg-$pkgver"
+ python -m build --wheel --no-isolation
}
package() {
- cd "${pkgname}-${pkgver}"/tools
- python setup.py install --root="${pkgdir}" --skip-build
- mv "${pkgdir}/usr/etc/" "${pkgdir}"
-
- # Update License
- install -Dm 644 "${srcdir}/${pkgname}-${pkgver}/tools/LICENSE.LGPL.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$_pkg-$pkgver"
+ PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 config/*.yml -t "$pkgdir/etc/sigma/"
+ cp -a --no-preserve=ownership config/generic "$pkgdir/etc/sigma"
}
# vim: ts=2 sw=2 et: