[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Sun Jun 20 18:13:46 UTC 2021


    Date: Sunday, June 20, 2021 @ 18:13:45
  Author: dvzrv
Revision: 966009

Add python-setuptools-scm-git-archive as potential new make requirement for arch-repo-management.

Added:
  python-setuptools-scm-git-archive/
  python-setuptools-scm-git-archive/repos/
  python-setuptools-scm-git-archive/trunk/
  python-setuptools-scm-git-archive/trunk/PKGBUILD

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

Added: python-setuptools-scm-git-archive/trunk/PKGBUILD
===================================================================
--- python-setuptools-scm-git-archive/trunk/PKGBUILD	                        (rev 0)
+++ python-setuptools-scm-git-archive/trunk/PKGBUILD	2021-06-20 18:13:45 UTC (rev 966009)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=setuptools-scm-git-archive
+pkgname=python-setuptools-scm-git-archive
+pkgver=1.1
+pkgrel=2
+pkgdesc="setuptools_scm plugin for git archives"
+arch=('any')
+url="https://github.com/changaco/setuptools_scm_git_archive/"
+license=('MIT')
+depends=('python-setuptools-scm')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz")
+sha512sums=('948b6f950b358f375c60bf44ce6a464238d0d91d60c44677e708ec06f91a04e3d56d60a439384ff06eee56b5e408d76f6a886ddd8b95c2978ccb03ae27924cd0')
+b2sums=('99aabdadc5872f9f406fb62dc598e40ac0e22e580db7a0284eac9666d032e96e503eb37750992d1162d4b2df4ea980ba636367d5497e321c5fb39ecbd4800c06')
+
+prepare() {
+  mv -v "${_name//-/_}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v tests.py
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list