diff options
author | a821 | 2023-05-03 14:07:18 +0200 |
---|---|---|
committer | a821 | 2023-05-04 10:27:02 +0200 |
commit | 584b62f58b8f8293bbe0ffaed80781118156f1cf (patch) | |
tree | 1daf521a56ca3f47401665210200590dc973dd06 | |
parent | 080bc000cef094509c8a787520346ef8fba7360c (diff) | |
download | aur-584b62f58b8f8293bbe0ffaed80781118156f1cf.tar.gz |
rebuild bump for python 3.11
set HOME to $srcdir during `check` to avoid unwanted files
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 17 insertions, 5 deletions
@@ -1,10 +1,13 @@ pkgbase = python-pagesign pkgdesc = A wrapper for the modern encryption and signing tools age and minisign pkgver = 0.1.0 - pkgrel = 2 + pkgrel = 3 url = https://docs.red-dove.com/pagesign/ arch = any license = BSD + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = age depends = minisign diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore @@ -3,7 +3,7 @@ pkgname=python-pagesign _name="${pkgname#python-}" pkgver=0.1.0 -pkgrel=2 +pkgrel=3 pkgdesc="A wrapper for the modern encryption and signing tools age and minisign" arch=('any') license=('BSD') @@ -14,18 +14,23 @@ depends=( 'minisign' 'python' ) -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') sha256sums=('53ef81a5868bd34bf1de17d0f5cb3bd0ba20d76ff228b5458d70f26830185c55') sha512sums=('07278ed91d88478a3e42df4f374a7fa69e9cf3922be001fc125b90915eca21cf7fc2ea24063b04a5123afdbf6e203d4c238dc28d190e3eb33d830b31cadb95b2') b2sums=('d322319f089ebc2aa867345a730bb5e53b7d30c181ee024ede1f3d01d1ddc66ae69b658f75d1eb07a113716e2f19f0e7374bb66b8c84fb730b8ab123f29b4b4f') +build() { + cd $_name-$pkgver + python -m build --wheel --no-isolation +} + check() { cd $_name-$pkgver - python test_pagesign.py + HOME="$srcdir" python test_pagesign.py } package() { cd $_name-$pkgver - python setup.py install --root "$pkgdir" --optimize 1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt } |