[arch-commits] Commit in (4 files)
Bruno Pagani
archange at archlinux.org
Wed Oct 30 18:47:49 UTC 2019
Date: Wednesday, October 30, 2019 @ 18:47:48
Author: archange
Revision: 520994
Initial addition of python2-ruamel.yaml to [community]
Required by whipper 0.8.0
Added:
python2-ruamel.yaml/
python2-ruamel.yaml/repos/
python2-ruamel.yaml/trunk/
python2-ruamel.yaml/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Added: python2-ruamel.yaml/trunk/PKGBUILD
===================================================================
--- python2-ruamel.yaml/trunk/PKGBUILD (rev 0)
+++ python2-ruamel.yaml/trunk/PKGBUILD 2019-10-30 18:47:48 UTC (rev 520994)
@@ -0,0 +1,35 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=ruamel.yaml
+pkgname=python2-${_pkg}
+pkgver=0.16.5
+pkgrel=1
+pkgdesc="Cross-section and time series data analysis toolkit"
+arch=(any)
+url="https://bitbucket.org/ruamel/yaml"
+license=(MIT)
+depends=(python2)
+makedepends=(python2-setuptools)
+source=(https://files.pythonhosted.org/packages/source/r/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408')
+
+prepare() {
+ cd ${_pkg}-${pkgver}
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python2 setup.py build
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ # https://bitbucket.org/ruamel/yaml/issues/114/setuppy-requirement-for-pip-prevents
+ RUAMEL_NO_PIP_INSTALL_CHECK=1 python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list