diff options
author | Nathan <ndowens@artixlinux.org> | 2020-10-20 22:16:01 +0000 |
---|---|---|
committer | Nathan <ndowens@artixlinux.org> | 2020-10-27 19:50:34 +0000 |
commit | 75b5d8c70bd3fa9070a4bd4b922aa7b69b293a35 (patch) | |
tree | d18727315ee22bf4eb5daaa7f7317a676ecadbd8 /system/ncurses | |
parent | 2b0e79727fefc4f22e1ea43f3c8c6981b17c8926 (diff) | |
download | packages-75b5d8c70bd3fa9070a4bd4b922aa7b69b293a35.tar.gz packages-75b5d8c70bd3fa9070a4bd4b922aa7b69b293a35.tar.bz2 packages-75b5d8c70bd3fa9070a4bd4b922aa7b69b293a35.tar.xz packages-75b5d8c70bd3fa9070a4bd4b922aa7b69b293a35.zip |
system/ncurses: Add more terms in terminfo
Diffstat (limited to 'system/ncurses')
-rw-r--r-- | system/ncurses/APKBUILD | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/system/ncurses/APKBUILD b/system/ncurses/APKBUILD index 73f5d922b..d2ad46900 100644 --- a/system/ncurses/APKBUILD +++ b/system/ncurses/APKBUILD @@ -2,7 +2,7 @@ pkgname=ncurses pkgver=6.2 _ver=${pkgver}-20200212 -pkgrel=0 +pkgrel=1 pkgdesc="Console display library" url="https://invisible-island.net/ncurses/ncurses.html" arch="all" @@ -12,9 +12,9 @@ depends="" makedepends_build="ncurses" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-terminfo-base:base:noarch $pkgname-terminfo:terminfo:noarch" -source="https://mirrormaster.adelielinux.org/source/upstream/ncurses-$_ver.tgz" - -builddir="$srcdir"/ncurses-$_ver +source="https://distfiles.adelielinux.org/source/upstream/$pkgname-$_ver.tgz + " +builddir="$srcdir/$pkgname-$_ver" # secfixes: # 6.0_p20171125-r0: @@ -48,16 +48,23 @@ package() { # Install basic terms in /etc/terminfo for i in ansi console dumb linux rxvt screen sun vt52 vt100 vt102 \ - vt200 vt220 xterm xterm-color xterm-xfree86; do - local termfile="$(find "$pkgdir"/usr/share/terminfo/ -name "$i" 2>/dev/null)" + vt200 vt220 xterm xterm-color xterm-xfree86 xterm-256color \ + alacritty tmux tmux-256color terminator 'terminology*' \ + vte vte-256color gnome gnome-256color kitty konsole konsole-256color \ + konsole-linux putty putty-256color rxvt-256color 'st-*' \ + screen-256color; do + local termfiles="$(find "$pkgdir"/usr/share/terminfo/ -name "$i" 2>/dev/null)" local basedir="$(basename $(dirname "$termfile"))" - [ -z "$termfile" ] && continue - + [ -z "$termfiles" ] && continue + + for termfile in $termfiles; do + local basedir=$(basename "$(dirname "$termfile")") install -d "$pkgdir"/etc/terminfo/$basedir - mv ${termfile} "$pkgdir"/etc/terminfo/$basedir/ - ln -s ../../../../etc/terminfo/$basedir/$i \ - "$pkgdir"/usr/share/terminfo/$basedir/$i + mv "$termfile" "$pkgdir"/etc/terminfo/$basedir/ + ln -s ../../../../etc/terminfo/$basedir/${termfile##*/} \ + "$pkgdir"/usr/share/terminfo/$basedir/${termfile##*/} + done done } |