diff options
author | Daniel Bershatsky | 2023-02-16 03:22:14 +0300 |
---|---|---|
committer | Daniel Bershatsky | 2023-02-16 03:22:14 +0300 |
commit | 6f2c9fd11ec3d5ff3eec4174a6af2b821b5d708f (patch) | |
tree | 1894071c287708c566b910ba20ec86cd01550776 | |
parent | 80770a642d3935e4d515bdcbd9603587fc0bb00a (diff) | |
download | aur-6f2c9fd11ec3d5ff3eec4174a6af2b821b5d708f.tar.gz |
Actualize packaging
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 21 insertions, 10 deletions
@@ -1,13 +1,14 @@ pkgbase = python-asciitree - pkgdesc = Draws +-- ASCII Trees. + pkgdesc = Draws +-- ASCII Trees pkgver = 0.3.3 pkgrel = 1 url = http://github.com/mbr/asciitree arch = any license = MIT - depends = python + depends = python-build + depends = python-installer + depends = python-setuptools source = https://files.pythonhosted.org/packages/source/a/asciitree/asciitree-0.3.3.tar.gz sha256sums = 4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e pkgname = python-asciitree - @@ -1,17 +1,27 @@ # Maintainer: Philipp A. <flying-sheep@web.de> +# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru> _name=asciitree pkgname=python-asciitree -pkgver=0.3.3 +pkgver=0.3.3 pkgrel=1 -pkgdesc='Draws +-- ASCII Trees.' -arch=(any) +pkgdesc='Draws +-- ASCII Trees' +arch=('any') url='http://github.com/mbr/asciitree' -license=(MIT) -depends=(python) +license=('MIT') +depends=('python') +depends=('python-build' 'python-installer' 'python-setuptools') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e') +build() { + cd "$_name-$pkgver" + python -m build -n -w +} + package() { - cd "$srcdir/$_name-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 || return 1 + cd "$_name-$pkgver" + python -m installer \ + --compile-bytecode 1 \ + --destdir $pkgdir \ + dist/${_name}-${pkgver}-*.whl } |