Date: Friday, April 14, 2023 @ 16:44:45
Author: jelle
Revision: 1446049
archrelease: copy trunk to community-staging-any
Added:
python-linetable/repos/community-staging-any/
python-linetable/repos/community-staging-any/PKGBUILD
(from rev 1446048, python-linetable/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-linetable/repos/community-staging-any/PKGBUILD (from rev
1446048, python-linetable/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-14 16:44:45 UTC (rev 1446049)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <[email protected]>
+
+pkgname=python-linetable
+pkgver=0.0.3
+pkgrel=1
+pkgdesc='Library to parse and generate co_linetable attributes in Python code
objects'
+url="https://github.com/amol-/linetable"
+arch=('any')
+license=('MIT')
+depends=('python')
+checkdepends=('python-pytest')
+makedepends=('python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/amol-/linetable/archive/refs/tags/${pkgver}.tar.gz)
+sha256sums=('dad177fcf1a75669e78b12ae5b6a5e5478fc9a41ea9295960436102ae8ce4b0a')
+
+build() {
+ cd linetable-${pkgver}
+ PYTHONPATH=. python3 setup.py build
+}
+
+check() {
+ cd linetable-${pkgver}
+ export PYTHONPATH="${PWD}"
+ pytest tests
+}
+
+package() {
+ cd linetable-${pkgver}
+ python ./setup.py install --root="$pkgdir/" --optimize=1
+
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}