# 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 }