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

Bruno Pagani archange at gemini.archlinux.org
Fri Jul 22 13:10:18 UTC 2022


    Date: Friday, July 22, 2022 @ 13:10:18
  Author: archange
Revision: 1255232

archrelease: copy trunk to community-any

Added:
  python-whatthepatch/repos/community-any/
  python-whatthepatch/repos/community-any/PKGBUILD
    (from rev 1255231, python-whatthepatch/trunk/PKGBUILD)

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

Copied: python-whatthepatch/repos/community-any/PKGBUILD (from rev 1255231, python-whatthepatch/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-07-22 13:10:18 UTC (rev 1255232)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=whatthepatch
+pkgname=python-${_pkg}
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="A Python patch parsing library"
+arch=(any)
+url="https://github.com/cscorley/whatthepatch"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/v${pkgver}rel/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('c540ea59173e0a291e19c742dd8b406c56e2be039a600edb7c6fc3ae4bbdfa9f')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  PYTHONPATH="${PWD}"/build/lib/ pytest -vv --color=yes
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list