[arch-commits] Commit in python-pyte/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:00:34 UTC 2019
Date: Friday, October 25, 2019 @ 20:00:33
Author: felixonmars
Revision: 519678
archrelease: copy trunk to community-staging-any
Added:
python-pyte/repos/community-staging-any/
python-pyte/repos/community-staging-any/PKGBUILD
(from rev 519677, python-pyte/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-pyte/repos/community-staging-any/PKGBUILD (from rev 519677, python-pyte/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:00:33 UTC (rev 519678)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyte
+pkgname=('python-pyte' 'python2-pyte')
+pkgver=0.8.0
+pkgrel=3
+pkgdesc='Simple VTXXX-compatible terminal emulator'
+arch=('any')
+license=('LGPL3')
+url='https://github.com/selectel/pyte'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-wcwidth' 'python2-wcwidth'
+ 'python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/selectel/pyte/archive/$pkgver.tar.gz")
+sha512sums=('c488fd0a61c1dc34b27e12ed9ba1109bb2c331626c982da06e7540bdd168008cb5106a17c71e60e38c493f2dd9f21ba3cf05118928744dfa192d62e511b4c4e8')
+
+prepare() {
+ cp -a pyte-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pyte-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyte-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pyte-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/pyte-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-pyte() {
+ depends=('python-wcwidth')
+
+ cd pyte-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pyte() {
+ depends=('python2-wcwidth')
+
+ cd pyte-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list