Date: Monday, November 9, 2020 @ 15:37:11
  Author: felixonmars
Revision: 747022

archrelease: copy trunk to community-staging-any

Added:
  python-munch/repos/community-staging-any/
  python-munch/repos/community-staging-any/PKGBUILD
    (from rev 747021, python-munch/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-munch/repos/community-staging-any/PKGBUILD (from rev 747021, 
python-munch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2020-11-09 15:37:11 UTC (rev 747022)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-munch
+pkgver=2.5.0
+pkgrel=3
+pkgdesc="A dot-accessible dictionary (a la JavaScript objects)"
+url="https://github.com/Infinidat/munch";
+license=('MIT')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-pytest' 'python-yaml')
+source=(https://pypi.io/packages/source/m/munch/munch-${pkgver}.tar.gz)
+sha512sums=('7eca31111f40782a19b49535322bc56d723022d52b0842c4beff512f32fa415a6c75851eb84950358cb6a11693095cafe56364028e48385b11135de414edca21')
+
+build() {
+  cd "$srcdir"/munch-$pkgver
+  export PYTHONPATH=$PWD
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/munch-$pkgver
+  pytest
+}
+
+package() {
+  cd munch-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}

Reply via email to