Date: Tuesday, November 30, 2021 @ 16:14:30
  Author: felixonmars
Revision: 1057824

archrelease: copy trunk to community-staging-x86_64

Added:
  python-ruamel.yaml.clib/repos/community-staging-x86_64/
  python-ruamel.yaml.clib/repos/community-staging-x86_64/PKGBUILD
    (from rev 1057823, python-ruamel.yaml.clib/trunk/PKGBUILD)

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

Copied: python-ruamel.yaml.clib/repos/community-staging-x86_64/PKGBUILD (from 
rev 1057823, python-ruamel.yaml.clib/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-11-30 16:14:30 UTC (rev 1057824)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Samuel Littley <[email protected]>
+# Contributor: rnons <remotenonsense at gmail dot com>
+
+_pkg=ruamel.yaml.clib
+pkgname=python-$_pkg
+pkgver=0.2.6
+pkgrel=2
+pkgdesc="C version of reader, parser and emitter for ruamel.yaml derived from 
libyaml"
+arch=('x86_64')
+url="https://sourceforge.net/projects/ruamel-yaml-clib/";
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=(https://files.pythonhosted.org/packages/source/r/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha512sums=('12307a3c3bae09cf65d9672894c9a869a7ed5483ca3afb9ee39d8bcbf1948b012a0dbf570e315cc8b9a8b55184de9e10324953ec4819d214379e01522ee13b20')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python 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 python setup.py install --skip-build 
--root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}

Reply via email to