diff --git a/python-semantic-version/PKGBUILD b/python-semantic-version/PKGBUILD new file mode 100644 index 00000000..41eab047 --- /dev/null +++ b/python-semantic-version/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Christoph Reiter + +pkgname=python-semantic-version +pkgver=2.10.0 +pkgrel=1 +pkgdesc="A library implementing the 'SemVer' scheme." +url="https://github.com/rbarrois/python-semanticversion" +license=('spdx:BSD-2-Clause') +msys2_references=( + 'purl: pkg:pypi/semantic-version' +) +arch=('any') +depends=('python') +makedepends=( + 'python-setuptools' + 'python-build' + 'python-installer' +) +source=("https://github.com/rbarrois/python-semanticversion/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha256sums=('e234480908f633d2d80fdd97e87699135b2ed2fc9876b7f41d1d4a2d3262a0c4') + +build() { + cd "python-semanticversion-$pkgver" + + python -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd "python-semanticversion-$pkgver" + + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} diff --git a/python-setuptools-rust/PKGBUILD b/python-setuptools-rust/PKGBUILD new file mode 100644 index 00000000..abc1a782 --- /dev/null +++ b/python-setuptools-rust/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Christoph Reiter + +pkgname=python-setuptools-rust +pkgver=1.11.1 +pkgrel=1 +pkgdesc="Compile and distribute Python extensions written in rust as easily as if they were written in C." +arch=('any') +license=('spdx:MIT') +url="https://github.com/PyO3/setuptools-rust" +msys2_references=( + 'archlinux: python-setuptools-rust' + 'purl: pkg:pypi/setuptools-rust' +) +depends=( + 'rust' + 'python-setuptools' + 'python-semantic-version' +) +makedepends=('python-build' 'python-installer' 'python-setuptools-scm') +source=(""https://github.com/PyO3/setuptools-rust/archive/refs/tags/v$pkgver.tar.gz"") +sha256sums=('7891482400f8511739f727f4045dcd72b41bf689e4e5b90c97ff98daee5dbe85') + +build() { + cd "setuptools-rust-$pkgver" + + python -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd "setuptools-rust-$pkgver" + + python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}