1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Morteza NourelahiAlamdari <m@0t1.me>
3 # Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
6 _pkgname="${pkgname#python-}"
9 pkgdesc="A drop-in replacement for PyYAML which preserves dict ordering"
11 url="https://github.com/wimglenn/oyaml"
13 depends=('python' 'python-yaml')
14 makedepends=('git' 'python-setuptools')
15 checkdepends=('python-pytest')
16 _commit='45bef7ee676e30a68a122fbac9801727e0064aab' # v1.0
17 source=("$pkgname::git+$url.git#commit=$_commit")
23 git describe --tags | sed 's/^v//'
29 # backport usage of yaml's safe_load function
30 git cherry-pick --no-commit 7381373cec378a464e1cf4ca8b03c6cb8493469b
48 python setup.py install --root="$pkgdir" --optimize=1
51 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
54 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE