[arch-commits] Commit in (4 files)

Jaroslav Lichtblau jlichtblau at archlinux.org
Thu Jul 13 08:05:12 UTC 2017


    Date: Thursday, July 13, 2017 @ 08:05:12
  Author: jlichtblau
Revision: 244895

python-diff-match-patch needed by translate-toolkit FS#52941

Added:
  python-diff-match-patch/
  python-diff-match-patch/repos/
  python-diff-match-patch/trunk/
  python-diff-match-patch/trunk/PKGBUILD

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

Added: python-diff-match-patch/trunk/PKGBUILD
===================================================================
--- python-diff-match-patch/trunk/PKGBUILD	                        (rev 0)
+++ python-diff-match-patch/trunk/PKGBUILD	2017-07-13 08:05:12 UTC (rev 244895)
@@ -0,0 +1,39 @@
+# $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=3
+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/*
+}


Property changes on: python-diff-match-patch/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list