mirror of
https://codeberg.org/privacy1st/py-regex-replace
synced 2024-12-23 02:36:05 +01:00
29 lines
758 B
Bash
29 lines
758 B
Bash
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
# Python package guidelines: https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
|
|
|
|
pkgname="py-regex-replace"
|
|
pkgver=0.0.1
|
|
pkgrel=1
|
|
pkgdesc="perform regex-replacement on stdin and output result to stdout"
|
|
arch=('any')
|
|
url="https://git.privacy1st.de/langfingaz/py-regex-replace"
|
|
license=('CC0')
|
|
|
|
depends=(python)
|
|
makedepends=()
|
|
makedepends+=(git) # fetch git sources
|
|
makedepends+=(python-build python-installer python-wheel) # python -m build
|
|
|
|
source=("git+${url}.git")
|
|
sha256sums=('SKIP') # 'SKIP' git sources
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|