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

Jaroslav Lichtblau jlichtblau at archlinux.org
Sun Dec 9 11:43:09 UTC 2018


    Date: Sunday, December 9, 2018 @ 11:43:09
  Author: jlichtblau
Revision: 413021

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-09 11:42:59 UTC (rev 413020)
+++ PKGBUILD	2018-12-09 11:43:09 UTC (rev 413021)
@@ -1,39 +0,0 @@
-# $Id$
-# 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
-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/"
-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')
-
-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() {
-  depends=('python')
-
-  cd "${srcdir}"/diff-match-patch-${pkgver}
-
-  python setup.py install --root="${pkgdir}" -O1
-}
-
-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/*
-}

Copied: python-diff-match-patch/repos/community-any/PKGBUILD (from rev 413020, python-diff-match-patch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-09 11:43:09 UTC (rev 413021)
@@ -0,0 +1,22 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Jakob Gahde <j5lx at fmail.co.uk>
+
+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://pypi.org/project/diff-match-patch/"
+license=('Apache')
+makedepends=('python' 'python-setuptools')
+source=(https://files.pythonhosted.org/packages/f0/2a/5ba07def0e9107d935aba62cf632afbd0f7c723a98af47ccbcab753d2452/diff-match-patch-$pkgver.tar.gz)
+sha256sums=('a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb')
+
+package() {
+  depends=('python')
+
+  cd "${srcdir}"/diff-match-patch-$pkgver
+
+  python setup.py install --root="${pkgdir}" -O1
+  find "${pkgdir}" -name *_py2.* -delete
+}



More information about the arch-commits mailing list