diff options
author | Carl Smedstad | 2023-08-04 13:56:19 +0200 |
---|---|---|
committer | Carl Smedstad | 2023-08-04 14:11:15 +0200 |
commit | be168093a9947009039c9cefff50413a3b51f350 (patch) | |
tree | 2f2ecd14711cadd9a54b845cee22bc7e3db195a3 | |
parent | f0ecfde1dc766266b71af808fd9c0a6b9fcfe896 (diff) | |
download | aur-be168093a9947009039c9cefff50413a3b51f350.tar.gz |
Publish version 0.25.1-4
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 32 insertions, 8 deletions
@@ -1,12 +1,18 @@ pkgbase = hererocks pkgdesc = Tool for installing Lua and LuaRocks locally pkgver = 0.25.1 - pkgrel = 3 + pkgrel = 4 url = https://github.com/luarocks/hererocks arch = any license = MIT + checkdepends = python-pytest + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel + depends = git depends = python + depends = unzip source = hererocks-0.25.1.tar.gz::https://github.com/luarocks/hererocks/archive/refs/tags/0.25.1.tar.gz sha256sums = bd3769fb9f7ac944f67601575a6c0aad7118e89ebba418985a126c2412f1f9e0 @@ -2,19 +2,27 @@ pkgname=hererocks pkgver=0.25.1 -pkgrel=3 +pkgrel=4 pkgdesc="Tool for installing Lua and LuaRocks locally" arch=(any) url="https://github.com/luarocks/hererocks" license=(MIT) +depends=( + git + python + unzip +) makedepends=( + python-build + python-installer python-setuptools + python-wheel ) -depends=( - python +checkdepends=( + python-pytest ) -source=("$pkgname-$pkgver.tar.gz::https://github.com/luarocks/$pkgname/archive/refs/tags/$pkgver.tar.gz") +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") sha256sums=('bd3769fb9f7ac944f67601575a6c0aad7118e89ebba418985a126c2412f1f9e0') _archive="$pkgname-$pkgver" @@ -22,13 +30,23 @@ _archive="$pkgname-$pkgver" build() { cd "$_archive" - python setup.py build + python -m build --wheel --no-isolation +} + +check() { + cd "$_archive" + + python -m pytest -k " \ + not test_install_latest_lua_with_latest_luarocks \ + and not test_install_latest_lua_with_luarocks_from_git \ + and not test_install_lua_5_1_without_compat_without_readline_with_old_luarocks \ + " } package() { cd "$_archive" - export PYTHONHASHSEED=0 - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |