[arch-commits] Commit in python-lupa/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Jun 29 07:27:59 UTC 2022
Date: Wednesday, June 29, 2022 @ 07:27:59
Author: alerque
Revision: 1239870
upgpkg: python-lupa 1.13-1
Modified:
python-lupa/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-29 07:25:19 UTC (rev 1239869)
+++ PKGBUILD 2022-06-29 07:27:59 UTC (rev 1239870)
@@ -3,41 +3,38 @@
_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')
+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 "${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
+ 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 "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py build --no-luajit
+ cd "$_archive"
+ python -m build -wn
}
check() {
- cd "${srcdir}"/${_pkgname}-${pkgver}
-
- python setup.py test
+ cd "$_archive"
+ 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
+ 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