[arch-commits] Commit in python-blessed (3 files)

Maxime Gauduin alucryd at archlinux.org
Mon May 8 11:13:44 UTC 2017


    Date: Monday, May 8, 2017 @ 11:13:44
  Author: alucryd
Revision: 227339

archrelease: copy trunk to community-any

Added:
  python-blessed/repos/
  python-blessed/repos/community-any/
  python-blessed/repos/community-any/PKGBUILD
    (from rev 227338, python-blessed/trunk/PKGBUILD)

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

Copied: python-blessed/repos/community-any/PKGBUILD (from rev 227338, python-blessed/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2017-05-08 11:13:44 UTC (rev 227339)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
+
+pkgbase=python-blessed
+pkgname=('python-blessed' 'python2-blessed')
+pkgver=1.14.2
+pkgrel=1
+pkgdesc='A thin, practical wrapper around terminal styling, screen positioning, and keyboard input'
+arch=('any')
+url='https://github.com/jquast/blessed'
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("python-blessed-${pkgver}.tar.gz::https://github.com/jquast/blessed/archive/${pkgver}.tar.gz")
+sha256sums=('6c375f28e8a4d85d03dd46e3dd058a9cd2279d51da018bca0c0f6b5d98b1ee34')
+
+prepare() {
+  cp -r {,python-}blessed-${pkgver}
+  mv {,python2-}blessed-${pkgver}
+}
+
+build() {
+  for py in python{,2}; do
+    pushd ${py}-blessed-${pkgver}
+    ${py} setup.py build
+    popd
+  done
+}
+package_python-blessed() {
+  depends=('python' 'python-dateutil' 'python-nose')
+
+  cd python-blessed-${pkgver}
+
+  python setup.py install --skip-build --root="${pkgdir}" --optimize='1' --skip-build
+}
+
+package_python2-blessed() {
+  depends=('python2' 'python2-dateutil' 'python2-nose')
+
+  cd python2-blessed-${pkgver}
+
+  python2 setup.py install --skip-build --root="${pkgdir}" --optimize='1' --skip-build
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list