[arch-commits] Commit in python-sphinxcontrib-bibtex/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:47:14 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:47:14
  Author: felixonmars
Revision: 1063334

archrelease: copy trunk to community-staging-any

Added:
  python-sphinxcontrib-bibtex/repos/community-staging-any/
  python-sphinxcontrib-bibtex/repos/community-staging-any/PKGBUILD
    (from rev 1063332, python-sphinxcontrib-bibtex/trunk/PKGBUILD)

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

Copied: python-sphinxcontrib-bibtex/repos/community-staging-any/PKGBUILD (from rev 1063332, python-sphinxcontrib-bibtex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:47:14 UTC (rev 1063334)
@@ -0,0 +1,33 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Co-Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+
+_pkgname=sphinxcontrib-bibtex
+pkgname="python-${_pkgname}"
+pkgver=2.4.1
+pkgrel=2
+pkgdesc="A Sphinx extension for BibTeX style citations"
+arch=('any')
+url="https://sphinxcontrib-bibtex.readthedocs.org"
+license=('BSD')
+depends=('python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-docutils')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('7272daddda98884c7655bf10d34312c275b05b79bb5f3fb9fd5e4b6e43eb513d')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  PYTHONPATH=".:./src:${PYTHONPATH}" pytest
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list