[arch-commits] Commit in python-editor/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Aug 4 14:51:35 UTC 2017


    Date: Friday, August 4, 2017 @ 14:51:34
  Author: anthraxx
Revision: 248448

archrelease: copy trunk to community-any

Added:
  python-editor/repos/community-any/
  python-editor/repos/community-any/PKGBUILD
    (from rev 248446, python-editor/trunk/PKGBUILD)

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

Copied: python-editor/repos/community-any/PKGBUILD (from rev 248446, python-editor/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-08-04 14:51:34 UTC (rev 248448)
@@ -0,0 +1,46 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Michael Straube <straubem at gmx.de>
+# Contributor: Kevin Brubeck Unhammer <unhammer at fsfe.org>
+
+pkgbase=python-editor
+pkgname=('python-editor' 'python2-editor')
+pkgver=1.0.3
+pkgrel=2
+pkgdesc='Programmatically open an editor, capture the result'
+url='https://github.com/fmoo/python-editor'
+arch=('any')
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/fmoo/python-editor/archive/${pkgver}.tar.gz)
+sha256sums=('e627a2160bdf5e435dcde964cf38bae39c02cdd8da2ccf5fac313b2ca453e2a3')
+sha512sums=('0b14462099f8c5a3a7517f0f0cb744470284c34d164483bc58b15ecf4c5484090149d5dcb923b932a41857cfa34d4f10e4238ccc20089804a14631a459b63a39')
+
+prepare() {
+  cp -a ${pkgbase}-${pkgver}{,-py2}
+  sed 's|python|python2|' -i ${pkgbase}-${pkgver}-py2/editor.py
+}
+
+build() {
+  (cd ${pkgbase}-${pkgver}
+    python setup.py build
+  )
+  (cd ${pkgbase}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+package_python-editor() {
+  depends=('python')
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}" --skip-build
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+package_python2-editor() {
+  depends=('python2')
+  cd ${pkgbase}-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --skip-build
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list