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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:21:21 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:21
  Author: felixonmars
Revision: 1058081

archrelease: copy trunk to community-staging-any

Added:
  python-pypandoc/repos/community-staging-any/
  python-pypandoc/repos/community-staging-any/PKGBUILD
    (from rev 1058079, python-pypandoc/trunk/PKGBUILD)

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

Copied: python-pypandoc/repos/community-staging-any/PKGBUILD (from rev 1058079, python-pypandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:21:21 UTC (rev 1058081)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=python-pypandoc
+pkgver=1.6.4
+pkgrel=2
+pkgdesc="Thin wrapper for pandoc"
+arch=('any')
+license=('MIT')
+url="https://github.com/bebraw/pypandoc"
+depends=('pandoc')
+makedepends=('python-setuptools')
+checkdepends=('texlive-core' 'texlive-latexextra')
+source=("https://github.com/bebraw/pypandoc/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f01a999040f48b858452d7de29fd0c44f7c247ff088fddfcd84ea47826327ce4572119e23a26bd929b6ff282d67974e23a61cdb5e4956ffd35af36cb991c199a')
+
+prepare() {
+  # We don't really need pip and wheel at runtime
+  sed -i "s/install_requires = .*/install_requires = ['setuptools'],/" pypandoc-$pkgver/setup.py
+}
+
+build() {
+  cd pypandoc-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pypandoc-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd pypandoc-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list