add PKGBUILD

This commit is contained in:
Daniel Langbein 2022-06-23 15:19:17 +02:00
parent d2277a98b3
commit 987737d0f7
3 changed files with 31 additions and 0 deletions

3
.gitignore vendored
View File

@ -2,4 +2,7 @@
/build/ /build/
/dist/ /dist/
/archlinux/py-regex-replace/
/archlinux/py-regex-replace-*-any.pkg.tar.zst
.idea/ .idea/

View File

@ -1,5 +1,7 @@
# py-regex-replace # py-regex-replace
perform regex-replacement on stdin and output result to stdout
## Installation ## Installation
```shell ```shell

26
archlinux/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
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
}