2023-05-24 16:25:31 +02:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: Giacomo Longo <gabibbo97@gmail.com>
|
2018-08-26 00:16:13 +02:00
|
|
|
pkgname=python-string-utils
|
2023-05-24 16:25:31 +02:00
|
|
|
pkgver=1.0.0
|
2018-08-26 00:16:13 +02:00
|
|
|
pkgrel=1
|
2023-05-24 16:25:31 +02:00
|
|
|
pkgdesc="Utility functions for strings validation and manipulation"
|
|
|
|
url="https://pypi.org/project/python-string-utils/"
|
2018-08-26 00:16:13 +02:00
|
|
|
license=('APACHE')
|
|
|
|
arch=('any')
|
2023-05-24 16:25:31 +02:00
|
|
|
makedepends=(python-build python-installer python-wheel python-setuptools)
|
2018-08-26 00:16:13 +02:00
|
|
|
depends=('python')
|
2023-05-24 16:25:31 +02:00
|
|
|
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
|
|
|
|
sha256sums=('dcf9060b03f07647c0a603408dc8b03f807f3b54a05c6e19eb14460256fac0cb')
|
2018-08-26 00:16:13 +02:00
|
|
|
|
|
|
|
build() {
|
2023-05-24 16:25:31 +02:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
python -m build --wheel --no-isolation
|
2018-08-26 00:16:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-05-24 16:25:31 +02:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
rm "$pkgdir"/usr/README/README.md
|
|
|
|
rmdir "$pkgdir"/usr/README
|
2018-08-26 00:16:13 +02:00
|
|
|
}
|