From 987737d0f763b21fe81e40d6dcd85f16739c3b25 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 23 Jun 2022 15:19:17 +0200 Subject: [PATCH] add PKGBUILD --- .gitignore | 3 +++ README.md | 2 ++ archlinux/PKGBUILD | 26 ++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 archlinux/PKGBUILD diff --git a/.gitignore b/.gitignore index e3fa837..1881e77 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ /build/ /dist/ +/archlinux/py-regex-replace/ +/archlinux/py-regex-replace-*-any.pkg.tar.zst + .idea/ diff --git a/README.md b/README.md index 008f0a9..be99b49 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # py-regex-replace +perform regex-replacement on stdin and output result to stdout + ## Installation ```shell diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD new file mode 100644 index 0000000..cdaab7c --- /dev/null +++ b/archlinux/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Daniel Langbein +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 +}