summaryrefslogtreecommitdiff
path: root/system/ncurses/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/ncurses/APKBUILD')
-rw-r--r--system/ncurses/APKBUILD31
1 files changed, 19 insertions, 12 deletions
diff --git a/system/ncurses/APKBUILD b/system/ncurses/APKBUILD
index 73f5d922b..e3c114a6d 100644
--- a/system/ncurses/APKBUILD
+++ b/system/ncurses/APKBUILD
@@ -1,8 +1,8 @@
-# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
+# Maintainer: Sheila Aman <sheila@vulpine.house>
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
}