aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2020-04-05 22:24:45 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-04-11 21:12:29 +0000
commit67ff3d44c974487c6b5594e274f686dc3d898a51 (patch)
tree9e67bb4920b1f41651e34b30356959579b74d99b
parent91f27522d436a8f0c3685ddcaaedd424528c3fe5 (diff)
downloadaports-67ff3d44c974487c6b5594e274f686dc3d898a51.tar.gz
aports-67ff3d44c974487c6b5594e274f686dc3d898a51.tar.bz2
aports-67ff3d44c974487c6b5594e274f686dc3d898a51.tar.xz
main/ncurses: fix missing vtXXX terminfo in ncurses-terminfo-base
change source to dev.alpinelinux.org because original is removed from upstream url
-rw-r--r--main/ncurses/APKBUILD45
1 files changed, 12 insertions, 33 deletions
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index 3d42a9fd38..f77448e191 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -2,7 +2,7 @@
pkgname=ncurses
pkgver=6.1_p20200118
_ver=${pkgver/_p/-}
-pkgrel=2
+pkgrel=3
pkgdesc="Console display library"
url="https://invisible-island.net/ncurses/"
arch="all"
@@ -11,7 +11,7 @@ license="MIT"
makedepends_build="ncurses"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs
$pkgname-terminfo-base:base:noarch $pkgname-terminfo:terminfo:noarch"
-source="https://invisible-mirror.net/archives/ncurses/current/ncurses-$_ver.tgz"
+source="https://dev.alpinelinux.org/archive/ncurses/ncurses-$_ver.tgz"
builddir="$srcdir"/ncurses-$_ver
# secfixes:
@@ -46,14 +46,18 @@ 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
+ 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 termfile=$(find "$pkgdir"/usr/share/terminfo/ -name "$i" 2>/dev/null) || true
local basedir=$(basename "$(dirname "$termfile")")
[ -z "$termfile" ] && continue
install -d "$pkgdir"/etc/terminfo/$basedir
- mv ${termfile} "$pkgdir"/etc/terminfo/$basedir/
+ mv $termfile "$pkgdir"/etc/terminfo/$basedir/
ln -s ../../../../etc/terminfo/$basedir/$i \
"$pkgdir"/usr/share/terminfo/$basedir/$i
done
@@ -76,9 +80,8 @@ terminfo() {
pkgdesc="$pkgdesc (other terminfo files)"
depends="$pkgname-terminfo-base=$pkgver-r$pkgrel"
- amove etc/terminfo
- amove usr/share/terminfo
- amove usr/lib/terminfo
+ mkdir -p $subpkgdir/usr/share $subpkgdir/usr/lib
+ mv $pkgdir/usr/lib/terminfo $subpkgdir/usr/lib
}
libs() {
@@ -94,32 +97,8 @@ base() {
depends=""
pkgdesc="Descriptions of common terminals"
- amove usr/share/terminfo/x/xterm-256color
- amove usr/share/terminfo/a/alacritty
- amove usr/share/terminfo/t/tmux
- amove usr/share/terminfo/t/tmux-256color
- amove usr/share/terminfo/t/terminator
- amove usr/share/terminfo/t/terminology*
- amove usr/share/terminfo/v/vte
- amove usr/share/terminfo/v/vte-256color
- amove usr/share/terminfo/g/gnome
- amove usr/share/terminfo/g/gnome-256color
- amove usr/share/terminfo/k/kitty
- amove usr/share/terminfo/k/konsole
- amove usr/share/terminfo/k/konsole-256color
- amove usr/share/terminfo/k/konsole-linux
- amove usr/share/terminfo/p/putty
- amove usr/share/terminfo/p/putty-256color
- amove usr/share/terminfo/r/rxvt
- amove usr/share/terminfo/r/rxvt-256color
- amove usr/share/terminfo/s/st-0*
- amove usr/share/terminfo/s/st-256color
- amove usr/share/terminfo/s/screen-256color
- amove etc/terminfo
-
- mkdir -p "$pkgdir"/etc/terminfo/s
- mv "$subpkgdir"/etc/terminfo/s/sun "$pkgdir"/etc/terminfo/s
- mv "$subpkgdir"/etc/terminfo/v "$pkgdir"/etc/terminfo
+ mkdir -p "$subpkgdir"/etc/terminfo
+ mv "$pkgdir"/etc/terminfo/ "$subpkgdir"/etc/
}
static() {