Date: Monday, November 9, 2020 @ 16:53:40 Author: foutrelis Revision: 747668
archrelease: copy trunk to community-staging-any Added: python-pyaml/repos/community-staging-any/ python-pyaml/repos/community-staging-any/PKGBUILD (from rev 747666, python-pyaml/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-pyaml/repos/community-staging-any/PKGBUILD (from rev 747666, python-pyaml/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-09 16:53:40 UTC (rev 747668) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-pyaml +pkgver=20.4.0 +pkgrel=3 +pkgdesc="PyYAML-based module to produce pretty and readable YAML-serialized data" +url="https://pypi.python.org/pypi/pyaml" +license=('BSD') +arch=('any') +depends=('python-yaml') +makedepends=('python-setuptools' 'python-yaml') +checkdepends=('python-unidecode') +optdepends=('python-unidecode: Needed if same-id objects or recursion is used within serialized data') +source=("https://pypi.io/packages/source/p/pyaml/pyaml-$pkgver.tar.gz") +sha512sums=('432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317') + +build() { + cd "$srcdir"/pyaml-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/pyaml-$pkgver + python setup.py test +} + +package() { + cd pyaml-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +}