Date: Thursday, April 6, 2023 @ 12:41:08
Author: felixonmars
Revision: 1438696
archrelease: copy trunk to community-staging-x86_64
Added:
python-lupa/repos/community-staging-x86_64/
python-lupa/repos/community-staging-x86_64/PKGBUILD
(from rev 1438695, python-lupa/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-lupa/repos/community-staging-x86_64/PKGBUILD (from rev 1438695,
python-lupa/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 12:41:08 UTC (rev 1438696)
@@ -0,0 +1,42 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+_pkgname=lupa
+pkgname=python-lupa
+pkgver=1.14.1
+pkgrel=2
+pkgdesc='Python wrapper around Lua and LuaJIT'
+arch=(x86_64)
+url="https://github.com/scoder/$_pkgname"
+license=(MIT)
+depends=(lua python)
+makedepends=(python-{build,installer,wheel}
+ python-setuptools)
+_archive="$_pkgname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz")
+sha256sums=('d0fd4e60ad149fe25c90530e2a0e032a42a6f0455f29ca0edb8170d6ec751c6e')
+
+prepare() {
+ cd "$_archive"
+ # --no-bundle is not removed from argv if lua is properly detected, so
the
+ # only working safety net is to rm the bundled sources
+ rm -rf third-party
+}
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ local _pyver=cpython-$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ cd "$PWD/build/lib.linux-$CARCH-$_pyver"
+ python -m unittest discover
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
+}