diff options
author | Xiretza | 2023-05-14 13:45:28 +0000 |
---|---|---|
committer | Xiretza | 2023-05-14 13:45:28 +0000 |
commit | 7e29a55bf3ebdc6ae04d79e81604169b58f9d8b1 (patch) | |
tree | 6e5a8f093a6ab25926bee5ab3744d55eaed59739 /PKGBUILD | |
parent | 0757c4a90ae95df2cf66e779f8587aed35583920 (diff) | |
download | aur-rapidyaml-git.tar.gz |
Update for added dependencies, use PEP 517 workflow
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 21 insertions, 8 deletions
@@ -3,22 +3,31 @@ _pkgname=rapidyaml pkgbase=$_pkgname-git pkgname=($pkgbase python-$pkgbase) -pkgver=0.2.3.r21.gefc8b0e +pkgver=0.5.0.r14.g6a5a07f pkgrel=1 pkgdesc="A library to parse and emit YAML, and do it fast." url="https://github.com/biojppm/rapidyaml" arch=(x86_64) license=('MIT') -makedepends=('git' 'cmake' 'swig' 'python-setuptools' 'python-setuptools-scm' 'python-cmake-build-extension') +makedepends=('git' 'cmake' 'ninja' 'swig' 'python-build' 'python-installer' 'python-wheel' + 'python-setuptools-git' 'python-setuptools-scm' + # note: contains additional patches for broken upstream not present in community package + 'python-cmake-build-extension-git') checkdepends=('python-pytest') source=( "git+https://github.com/biojppm/rapidyaml.git" "git+https://github.com/biojppm/c4core.git" "git+https://github.com/biojppm/cmake.git" + "git+https://github.com/biojppm/debugbreak" + "git+https://github.com/fastfloat/fast_float" + "0001-Remove-bogus-ninja-wheel-dependency.patch" ) sha256sums=('SKIP' 'SKIP' - 'SKIP') + 'SKIP' + 'SKIP' + 'SKIP' + 'c12e283c0c0e970f7150068cf44f5106b4459f745f0b57513acd7bbfcbec897f') pkgver() { cd "$_pkgname" @@ -29,17 +38,21 @@ pkgver() { prepare() { cd "$_pkgname" + patch -p1 < "$srcdir/0001-Remove-bogus-ninja-wheel-dependency.patch" + sed -i -e 's/-git//' setup.py git submodule init git config submodule.extern/c4core.url "$srcdir/c4core" - git submodule update + git -c protocol.allow=never -c protocol.file.allow=always submodule update cd ext/c4core git submodule init git config submodule.cmake.url "$srcdir/cmake" - git submodule update + git config submodule.extern/debugbreak.url "$srcdir/debugbreak" + git config submodule.src/c4/ext/fast_float.url "$srcdir/fast_float" + git -c protocol.allow=never -c protocol.file.allow=always submodule update } build() { @@ -51,7 +64,7 @@ build() { cd "$_pkgname" - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -72,13 +85,13 @@ package_rapidyaml-git() { } package_python-rapidyaml-git() { - depends=('python') + depends=('python' 'python-deprecation') provides=("${pkgname%%-git}=$pkgver") conflicts=("${pkgname%%-git}") cd "$_pkgname" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |