commit adf0b9a0679005e479bf31839a7c20c77eccb1bd Author: xhaa123 Date: Mon Nov 4 12:17:11 2024 +0800 python-calver 2022.06.26-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f5ba32e --- /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-calver +pkgver=2022.06.26 +pkgrel=1 +pkgdesc="Setuptools extension for CalVer package versions" +arch=('x86_64') +url="https://github.com/di/calver" +license=('Apache') +depends=('python') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +source=(https://github.com/di/calver/archive/${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) +sha256sums=(0d3adaea2006c326ccd3959aae34836f497145c0f36b68f00f88d8b7ed02539b) + +build() { + cd ${pkgname#*-}-${pkgver} + + python3 -m build --wheel --no-isolation +} + +package() { + cd ${pkgname#*-}-${pkgver} + + python3 -m installer --destdir=${pkgdir} dist/*.whl +}