[arch-commits] Commit in python-diff-match-patch/repos (2 files)

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


    Date: Tuesday, November 30, 2021 @ 20:20:55
  Author: felixonmars
Revision: 1058071

archrelease: copy trunk to community-staging-any

Added:
  python-diff-match-patch/repos/community-staging-any/
  python-diff-match-patch/repos/community-staging-any/PKGBUILD
    (from rev 1058068, python-diff-match-patch/trunk/PKGBUILD)

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

Copied: python-diff-match-patch/repos/community-staging-any/PKGBUILD (from rev 1058068, python-diff-match-patch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:20:55 UTC (rev 1058071)
@@ -0,0 +1,33 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Bruno Pagani <archange at archlinux.org>
+
+_pkg=diff-match-patch
+pkgname=python-${_pkg}
+pkgver=20200713
+pkgrel=4
+pkgdesc="Robust algorithms to perform the operations required for synchronizing plain text"
+arch=('any')
+url="https://github.com/diff-match-patch-python/diff-match-patch"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('da6f5a01aa586df23dfc89f3827e1cafbb5420be9d87769eeb079ddfd9477a18')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  pytest
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  find "${pkgdir}" -name *_py2.* -delete
+  rm -r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/${_pkg//-/_}/tests
+}



More information about the arch-commits mailing list