Files
MSYS2-packages/python-smartypants/PKGBUILD
Christoph Reiter 0566eff63a Remove makedepends on python-wheel everywhere
setuptools no longer needs it for building wheels since v70.1.0
2024-08-16 14:03:27 +02:00

33 lines
797 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-smartypants
_pyname=smartypants
pkgver=2.0.1
pkgrel=3
pkgdesc="Python with the SmartyPants"
url="https://github.com/leohemsted/smartypants.py"
license=('spdx:BSD-2-Clause')
arch=('any')
depends=('python')
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
)
sha256sums=('b98191911ff3b4144ef8ad53e776a2d0ad24bd508a905c6ce523597c40022773')
source=("$pkgname-$pkgver.tar.gz::https://github.com/leohemsted/${_pyname}.py/archive/v${pkgver}.tar.gz")
build() {
cd "$_pyname.py-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_pyname.py-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}