[arch-commits] Commit in python-diff-match-patch/trunk (PKGBUILD)

Jaroslav Lichtblau jlichtblau at archlinux.org
Sun Dec 9 11:42:59 UTC 2018


    Date: Sunday, December 9, 2018 @ 11:42:59
  Author: jlichtblau
Revision: 413020

upgpkg: python-diff-match-patch 20181111-1 - new upstream release

Modified:
  python-diff-match-patch/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-09 11:11:07 UTC (rev 413019)
+++ PKGBUILD	2018-12-09 11:42:59 UTC (rev 413020)
@@ -1,38 +1,22 @@
 # Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
 # Contributor: Jakob Gahde <j5lx at fmail.co.uk>
 
-pkgbase=python-diff-match-patch
-pkgname=('python-diff-match-patch' 'python2-diff-match-patch')
-pkgver=20121119
-pkgrel=4
+pkgname=python-diff-match-patch
+pkgver=20181111
+pkgrel=1
 pkgdesc="Robust algorithms to perform the operations required for synchronizing plain text"
 arch=('any')
-url="https://code.google.com/archive/p/google-diff-match-patch/"
+url="https://pypi.org/project/diff-match-patch/"
 license=('Apache')
-makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
-source=(https://pypi.python.org/packages/source/d/diff-match-patch/diff-match-patch-${pkgver}.tar.gz)
-sha256sums=('9dba5611fbf27893347349fd51cc1911cb403682a7163373adacc565d11e2e4c')
+makedepends=('python' 'python-setuptools')
+source=(https://files.pythonhosted.org/packages/f0/2a/5ba07def0e9107d935aba62cf632afbd0f7c723a98af47ccbcab753d2452/diff-match-patch-$pkgver.tar.gz)
+sha256sums=('a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb')
 
-prepare() {
-  cd "${srcdir}"/diff-match-patch-${pkgver}
-
-  sed -i 's/\/usr\/bin\/python2.4/\/usr\/bin\/python2.7/' python2/diff_match_patch/*
-}
-
-package_python-diff-match-patch() {
+package() {
   depends=('python')
 
-  cd "${srcdir}"/diff-match-patch-${pkgver}
+  cd "${srcdir}"/diff-match-patch-$pkgver
 
   python setup.py install --root="${pkgdir}" -O1
+  find "${pkgdir}" -name *_py2.* -delete
 }
-
-package_python2-diff-match-patch() {
-  depends=('python2')
-
-  cd "${srcdir}"/diff-match-patch-${pkgver}
-
-  rm -rf build # Installs python3 version otherwise
-  python2 setup.py install --root="${pkgdir}" -O1
-  chmod 644 "${pkgdir}"/usr/lib/python2.7/site-packages/diff_match_patch-20121119-py2.7.egg-info/*
-}


More information about the arch-commits mailing list