Date: Saturday, April 10, 2021 @ 16:09:39 Author: yan12125 Revision: 915583
archrelease: copy trunk to community-any Added: python-unidiff/repos/community-any/ python-unidiff/repos/community-any/PKGBUILD (from rev 915582, python-unidiff/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-unidiff/repos/community-any/PKGBUILD (from rev 915582, python-unidiff/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2021-04-10 16:09:39 UTC (rev 915583) @@ -0,0 +1,31 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> +# Contributor: xiretza <xiretza+...@xiretza.xyz> +# Contributor: Adhityaa Chandrasekar <c.adhit...@gmail.com> + +pkgname=python-unidiff +pkgver=0.6.0 +pkgrel=3 +pkgdesc='Simple Python library to parse and interact with unified diff data' +arch=('any') +url="https://github.com/matiasb/python-unidiff" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/u/unidiff/unidiff-$pkgver.tar.gz") +sha256sums=('90c5214e9a357ff4b2fee19d91e77706638e3e00592a732d9405ea4e93da981f') + +build() { + cd unidiff-$pkgver + python setup.py build +} + +check() { + cd unidiff-$pkgver + python -m unittest discover -s tests +} + +package() { + cd unidiff-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +}