[arch-commits] Commit in python-orderedmultidict/repos (2 files)
David Runge
dvzrv at archlinux.org
Sat Feb 17 13:15:07 UTC 2018
Date: Saturday, February 17, 2018 @ 13:15:06
Author: dvzrv
Revision: 296063
archrelease: copy trunk to community-any
Added:
python-orderedmultidict/repos/community-any/
python-orderedmultidict/repos/community-any/PKGBUILD
(from rev 296062, python-orderedmultidict/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-orderedmultidict/repos/community-any/PKGBUILD (from rev 296062, python-orderedmultidict/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-02-17 13:15:06 UTC (rev 296063)
@@ -0,0 +1,58 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Husam Bilal <husam212 AT gmail DOT com>
+
+_name=orderedmultidict
+pkgbase=python-orderedmultidict
+pkgname=('python-orderedmultidict' 'python2-orderedmultidict')
+pkgver=0.7.11
+pkgrel=2
+pkgdesc="Ordered multivalue dictionary that retains method parity with dict."
+url="https://github.com/gruns/orderedmultidict"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pycodestyle' 'python2-pycodestyle')
+license=('custom')
+arch=('any')
+source=("https://pypi.io/packages/source/o/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('0aefb0b308709e66e6f4d3358dc6db53563054a78ba70a49e4e89db20350d36295b863c0feff8232eecff0fe68e0b62b8ef032e1c596dae5c5873bd6d345e75c')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
+ cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+}
+
+build() {
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py build
+ cd ../"${pkgname[1]}-${pkgver}"
+ python2 setup.py build
+}
+
+check() {
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py test
+
+ cd ../"${pkgname[1]}-${pkgver}"
+ python2 setup.py test
+}
+
+package_python-orderedmultidict() {
+ depends=('python-six')
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE"
+ install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" -vDm644 {API,README}.md
+}
+
+package_python2-orderedmultidict() {
+ depends=('python2-six')
+ cd "${pkgname[0]}-${pkgver}"
+ python2 setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE"
+ install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" -vDm644 {API,README}.md
+}
More information about the arch-commits
mailing list