[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Mar 15 10:53:10 UTC 2018


    Date: Thursday, March 15, 2018 @ 10:53:09
  Author: felixonmars
Revision: 308435

addpkg: python-munch 2.2.0-1

Added:
  python-munch/
  python-munch/repos/
  python-munch/trunk/
  python-munch/trunk/PKGBUILD

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

Added: python-munch/trunk/PKGBUILD
===================================================================
--- python-munch/trunk/PKGBUILD	                        (rev 0)
+++ python-munch/trunk/PKGBUILD	2018-03-15 10:53:09 UTC (rev 308435)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-munch
+pkgname=(python-munch python2-munch)
+pkgver=2.2.0
+pkgrel=1
+pkgdesc="A dot-accessible dictionary (a la JavaScript objects)"
+url="https://github.com/Infinidat/munch"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python-yaml' 'python2-yaml')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Infinidat/munch/archive/$pkgver.tar.gz")
+sha512sums=('f6ad5a380664246fecf65ba32d8f168f047192d9ca6b02b941d99173677eec235951c59d6fadbce94e3fc32de0e0e7358f319f8c34f623f8da85ee8878048350')
+
+prepare() {
+  cp -a munch-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/munch-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/munch-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/munch-$pkgver
+  pytest
+
+  cd "$srcdir"/munch-$pkgver-py2
+  pytest2
+}
+
+package_python-munch() {
+  depends=('python-six')
+
+  cd munch-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-munch() {
+  depends=('python2-six')
+
+  cd munch-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}


Property changes on: python-munch/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list