[arch-commits] Commit in python-lupa/repos/community-x86_64 (PKGBUILD PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Wed Jun 29 07:28:06 UTC 2022


    Date: Wednesday, June 29, 2022 @ 07:28:06
  Author: alerque
Revision: 1239871

archrelease: copy trunk to community-x86_64

Added:
  python-lupa/repos/community-x86_64/PKGBUILD
    (from rev 1239870, python-lupa/trunk/PKGBUILD)
Deleted:
  python-lupa/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   82 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 40 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 07:27:59 UTC (rev 1239870)
+++ PKGBUILD	2022-06-29 07:28:06 UTC (rev 1239871)
@@ -1,42 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=lupa
-pkgname=python-lupa
-pkgver=1.10
-pkgrel=3
-pkgdesc="Python wrapper around Lua and LuaJIT"
-arch=('x86_64')
-url="https://github.com/scoder/lupa"
-license=('MIT')
-depends=('lua53' 'python')
-makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('e2511b27f381f6fdb66ef40dcc518215038197431b241935678dfc3d51178231')
-b2sums=('2620abad8d35e21425d9a5d4bf118754f759dd9dd7383459ef8196e304f7ec069c088ba09d281d4ba688eb91d80c4022f614f56813caf567087cfe4b45ac8c83')
-
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    # --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 "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build --no-luajit
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py test
-}
-
-package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
-}

Copied: python-lupa/repos/community-x86_64/PKGBUILD (from rev 1239870, python-lupa/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-29 07:28:06 UTC (rev 1239871)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=lupa
+pkgname=python-lupa
+pkgver=1.13
+pkgrel=1
+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=('e1d94ac2a630d271027dac2c21d1428771d9ea9d4d88f15f20a7781340f02a4e')
+
+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"
+	python setup.py test
+}
+
+package() {
+	cd "$_archive"
+	python -m installer -d "$pkgdir" dist/*.whl
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
+}



More information about the arch-commits mailing list