Date: Friday, July 22, 2022 @ 13:10:10 Author: archange Revision: 1255231
Initial addition of whatthepatch to [community] Required by python-lsp-server Added: python-whatthepatch/ python-whatthepatch/repos/ python-whatthepatch/trunk/ python-whatthepatch/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-whatthepatch/trunk/PKGBUILD =================================================================== --- python-whatthepatch/trunk/PKGBUILD (rev 0) +++ python-whatthepatch/trunk/PKGBUILD 2022-07-22 13:10:10 UTC (rev 1255231) @@ -0,0 +1,32 @@ +# Maintainer: Bruno Pagani <[email protected]> + +_pkg=whatthepatch +pkgname=python-${_pkg} +pkgver=1.0.2 +pkgrel=1 +pkgdesc="A Python patch parsing library" +arch=(any) +url="https://github.com/cscorley/whatthepatch" +license=(MIT) +depends=(python) +makedepends=(python-setuptools) +checkdepends=(python-pytest) +source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +#source=(${url}/archive/v${pkgver}rel/${pkgname}-${pkgver}.tar.gz) +sha256sums=('c540ea59173e0a291e19c742dd8b406c56e2be039a600edb7c6fc3ae4bbdfa9f') + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +check() { + cd ${_pkg}-${pkgver} + PYTHONPATH="${PWD}"/build/lib/ pytest -vv --color=yes +} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} +}
