Browse Source

asciinema: remove failing nl_langinfo check

Fixes #3172
android-5
Henrik Grimler 6 years ago
committed by Fredrik Fornwall
parent
commit
3670d000dd
  1. 2
      packages/asciinema/build.sh
  2. 13
      packages/asciinema/no_langinfo.patch

2
packages/asciinema/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://asciinema.org/
TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way"
TERMUX_PKG_VERSION=2.0.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4
TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes

13
packages/asciinema/no_langinfo.patch

@ -0,0 +1,13 @@
--- ../__main__.py.orig 2018-12-28 15:18:49.567468833 +0100
+++ ./asciinema/__main__.py 2018-12-28 15:19:17.550800251 +0100
@@ -50,10 +50,6 @@
def main():
- if locale.nl_langinfo(locale.CODESET).upper() != 'UTF-8':
- print("asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.")
- sys.exit(1)
-
try:
cfg = config.load()
except config.ConfigError as e:
Loading…
Cancel
Save