[arch-commits] Commit in python-threat9-test-bed/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 05:02:14 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:02:13
Author: felixonmars
Revision: 749249
archrelease: copy trunk to community-staging-any
Added:
python-threat9-test-bed/repos/community-staging-any/
python-threat9-test-bed/repos/community-staging-any/PKGBUILD
(from rev 749247, python-threat9-test-bed/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-threat9-test-bed/repos/community-staging-any/PKGBUILD (from rev 749247, python-threat9-test-bed/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:02:13 UTC (rev 749249)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-threat9-test-bed
+_pyname=threat9-test-bed
+_gitcommit=1ed61b34d0b138711e3f8267259cdb29787fe349
+pkgver=0.6.0+2+g1ed61b3
+pkgrel=3
+pkgdesc='Threat9 Test Bed'
+url='https://github.com/threat9/threat9-test-bed'
+arch=('any')
+license=('custom')
+depends=('python' 'python-setuptools' 'python-click' 'python-faker' 'python-flask'
+ 'gunicorn' 'python-pyopenssl' 'python-requests')
+makedepends=('git' 'python-setuptools-scm')
+checkdepends=('python-pytest')
+source=(${pkgname}::"git+https://github.com/threat9/threat9-test-bed#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --always --tags | sed 's/^v//;s/-/+/g'
+}
+
+build() {
+ cd ${pkgname}
+ python setup.py build
+}
+
+check() {
+ cd ${pkgname}
+ python -m pytest
+}
+
+package() {
+ cd ${pkgname}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list