From 8620627b8299e53abd55196fe6f260b841e9bf10 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 4 Nov 2024 15:33:53 +0800 Subject: [PATCH] python-lxml 5.1.0-1 --- PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..71c3a7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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-lxml +pkgver=5.1.0 +pkgrel=1 +pkgdesc="Python3 binding for the libxml2 and libxslt libraries" +arch=('x86_64') +url="https://lxml.de" +license=('BSD' 'custom') +depends=('python' 'libxslt') +makedepends=( + 'python-build' + 'python-installer' + 'python-flit-core' + 'python-wheel' + 'python-cython' +) +source=(https://github.com/lxml/lxml/releases/download/${pkgname#*-}-${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(c4b12bc6d6186ba8ac07bb7bb558312ec6738ca7d9365e862aa9c4462388ffb7) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build -nw + +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer -d ${pkgdir} dist/*.whl +}