[arch-commits] Commit in python2-backports.shutil_get_terminal_size/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue Nov 13 20:13:20 UTC 2018


    Date: Tuesday, November 13, 2018 @ 20:13:20
  Author: arojas
Revision: 407151

Fix fallback size (FS#60722)

Modified:
  python2-backports.shutil_get_terminal_size/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-13 19:58:18 UTC (rev 407150)
+++ PKGBUILD	2018-11-13 20:13:20 UTC (rev 407151)
@@ -1,7 +1,7 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
 pkgname=python2-backports.shutil_get_terminal_size
 pkgver=1.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="The get_terminal_size() function from Python 3.3"
 arch=('any')
 url="https://pypi.python.org/pypi/backports.ssl_match_hostname"
@@ -8,9 +8,16 @@
 license=('MIT')
 depends=('python2-backports')
 makedepends=('python2-setuptools')
-source=("https://github.com/chrippa/backports.shutil_get_terminal_size/archive/v$pkgver.tar.gz")
-md5sums=('82499a36a98dd7ed37c8678e6002a375')
+source=("https://github.com/chrippa/backports.shutil_get_terminal_size/archive/v$pkgver.tar.gz"
+        fix-fallback.patch::"https://github.com/chrippa/backports.shutil_get_terminal_size/commit/afc5714b.patch")
+md5sums=('82499a36a98dd7ed37c8678e6002a375'
+         '071e696dba553fd4fcee24b1dfb8ef3a')
 
+prepare() {
+  cd backports.shutil_get_terminal_size-$pkgver
+  patch -p1 -i ../fix-fallback.patch # fix fallback size on Linux
+}
+
 package() {
   cd "$srcdir/backports.shutil_get_terminal_size-$pkgver"
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0


More information about the arch-commits mailing list