python-license-expression 30.4.0-1

This commit is contained in:
xhaa123 2024-10-31 13:01:23 +08:00
commit 6a2d3142d1

37
PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
# 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 <xhaa123@outlook.com>
pkgname=python-license-expression
pkgver=30.4.0
pkgrel=1
pkgdesc="Utility to parse, normalize and compare license expressions"
arch=('x86_64')
url="https://github.com/nexB/license-expression"
license=('Apache-2.0')
depends=('python' 'python-boolean.py')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
source=(https://github.com/aboutcode-org/license-expression/archive/v${pkgver}/${pkgname#*-}-${pkgver}.tar.gz)
sha256sums=(4e767cfdaf0cba38c1bc9c7cd279bf0c922b0b697e5570e4764d5d6fb140e832)
prepare() {
cd ${pkgname#*-}-${pkgver}
# Fix file to comply with PEP-440
sed -i pyproject.toml \
-e "s/^fallback_version =.*/fallback_version = \"$pkgver\"/"
}
build() {
cd ${pkgname#*-}-${pkgver}
python3 -m build --wheel --no-isolation
}
package() {
cd ${pkgname#*-}-${pkgver}
python3 -m installer --destdir=${pkgdir} dist/*.whl
}