diff options
author | Luis Martinez | 2022-07-10 14:36:35 -0500 |
---|---|---|
committer | Luis Martinez | 2022-07-10 14:46:04 -0500 |
commit | 6d9b65709fdf30ad958922e524b847e53b56e008 (patch) | |
tree | df5658d174d4a2736b3fd6eeae56dc3471ed98f0 /PKGBUILD | |
parent | 579caa4eaadb1e75e221d981b12fcf827f2266d4 (diff) | |
download | aur-python-simple-crypt.tar.gz |
packaging update
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 18 insertions, 20 deletions
@@ -1,33 +1,31 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> # Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > # Contributor: Yardena Cohen <yardenack@gmail.com> pkgname=python-simple-crypt -_name="${pkgname#python-}" -_commit='ae19ce570b285474cacf0acaaea514b08111501d' +_pkg="${pkgname#python-}" pkgver=5.0.0.r7.gae19ce5 -pkgrel=1 -pkgdesc='[Deprecated] Simple encryption and decryption for Python' +_commit=ae19ce570b285474cacf0acaaea514b08111501d +pkgrel=2 +pkgdesc='Simple encryption and decryption for Python' arch=('any') -url="https://github.com/KyleKing/${_name}" -license=('custom:Unlicense') -makedepends=('python-setuptools') -_tarname="${_name}-${_commit}" -source=("${_tarname}.tar.gz::${url}/archive/${_commit}.tar.gz" +url="https://github.com/KyleKing/simple-crypt" +license=('Unlicense') +depends=('python-pycryptodome') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz" 'LICENSE') -b2sums=('38baab8302223902e7118af63b422f679583bfcc6ffd5ad19323947352f7501c2542ad6c8e0016134ba650ccae27cf2937964e252418fea5540fdcd94843ee75' - '63f2d1930ce3975256b45aceef15f7c5693007873fe5419b8cf8e61b1c3975cc1be8cda038d8fc2ed80e9f4445956a47b8e9ea2b1d06e0c260cfacab6b7e2abc') +sha256sums=('6312c536c5fdb29e8e0dade089158922429dbf6a5c88b6a3dd54d3fcf975dd91' + '64462022dadbceb9425f25cfaeaeb64d24f3e5a50c8dbc85492e1c77c9c3bb43') build() { - cd "${_tarname}" - python setup.py build + cd "$_pkg-$_commit" + python -m build --wheel --no-isolation } package() { - depends=('python-pycryptodome') - - cd "${_tarname}" - python setup.py install --root="${pkgdir}" --prefix='/usr' --optimize=1 --skip-build - - install --verbose -Dm 644 '../LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" - install --verbose -Dm 644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + cd "$_pkg-$_commit" + PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } |