Date: Saturday, March 5, 2022 @ 15:41:36 Author: foxboron Revision: 1142223
upgpkg: python-formencode 2.0.1-1: addpkg: python-formencode 2.0.1-1 Added: python-formencode/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-05 15:41:36 UTC (rev 1142223) @@ -0,0 +1,33 @@ +# Maintainer: Morten Linderud <[email protected]> + +pkgname=python-formencode +_pkgname=formencode +_pypi=FormEncode +pkgver=2.0.1 +pkgrel=1 +pkgdesc="A validation library for Python." +arch=("any") +url="http://www.formencode.org/en/latest/" +license=("MIT") +depends=("python") +checkdepends=("python-pytest" "python-dnspython" "python-pycountry") +makedepends=("python-setuptools" "python-setuptools-scm-git-archive") +source=("$pkgname-$pkgver.tar.gz::https://github.com/formencode/formencode/archive/$pkgver.tar.gz") +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pypi}-${pkgver}.tar.gz") +sha256sums=('8f2974112c2557839d5bae8b76490104c03830785d923abbdef148bf3f710035') + +build() { + cd "${_pypi}-${pkgver}" + python setup.py build +} + +check(){ + cd "${_pypi}-${pkgver}" + python -m unittest +} + +package() { + cd "${_pypi}-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +}
