From 9bccd758e5eb73ff2b9ec31c4303c0ed5d7a6ace Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 21 Oct 2024 22:46:49 +0800 Subject: [PATCH] python-ruamel_yaml 0.18.6-1 --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1c52ed2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Your Name +pkgname=python-ruamel_yaml +pkgver=0.18.6 +pkgrel=1 +pkgdesc="ruamel.yaml is a YAML 1.2 loader/dumper package for Python." +arch=('x86_64') +url="https://yaml.readthedocs.io/en/latest/" +license=('MIT') +depends=('python-ruamel-yaml-clib') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-flit-core') +source=(https://pypi.debian.net/ruamel.yaml/ruamel.yaml-${pkgver}.tar.gz) +sha256sums=(8b27e6a217e786c6fbe5634d8f3f11bc63e0f80f6a5890f28863d9c45aac311b) + +build() { + cd ruamel.yaml-${pkgver} + + CFLAGS="$CFLAGS -Wno-error=incompatible-pointer-types" \ + python3 -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd ruamel.yaml-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}