2025-06-19 07:24:52 +02:00

36 lines
849 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=python-smartypants
_pyname=smartypants
pkgver=2.0.2
pkgrel=1
pkgdesc="Python with the SmartyPants"
url="https://github.com/leohemsted/smartypants.py"
msys2_references=(
'purl: pkg:pypi/smartypants'
)
license=('spdx:BSD-2-Clause')
arch=('any')
depends=('python')
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
)
sha256sums=('560ae7485a27c288f5bd63131f5c3c7b8f0745f50e7c3f85f0bbc65d87799d19')
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"
}