commit 99e06e916e86c3a10d4002bfc76125f44c49e16f Author: xhaa123 Date: Wed Oct 30 00:16:48 2024 +0800 python-pyyaml 6.0.1-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1550bf8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# 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: Future Linux Team +pkgname=python-pyyaml +pkgver=6.0.1 +pkgrel=1 +pkgdesc="Python bindings for YAML, using fast libYAML library" +arch=('x86_64') +url="https://github.com/yaml/pyyaml" +license=('MIT') +depends=('glibc' 'libyaml' 'python') +makedepends=('python-cython0' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') +source=(https://github.com/yaml/pyyaml/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(57314c984aaa84318eed00cf5a8365afc49f87954969e295efe2ba99f3b21f7a) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation --config-setting=--with-libyaml +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}