This allows us to include a version and we already use PURL for other things, so might as well remove the pypi special case. Normalize the names, since that is required for PURLs.
36 lines
849 B
Bash
36 lines
849 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"
|
|
msys2_references=(
|
|
'purl: pkg:pypi/smartypants'
|
|
)
|
|
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"
|
|
}
|