foot: fix terminfo

This commit is contained in:
Ella Stanforth 2022-03-13 12:03:56 +00:00
parent 629d1713eb
commit af3aacaebc
2 changed files with 33 additions and 4 deletions

View File

@ -2,10 +2,16 @@ pkgname=foot
pkgver=1.10.3
fetch() {
curl -L "https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
curl -L "https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
curl -L "https://codeberg.org/dnkl/fcft/archive/2.4.5.tar.gz" -o fcft.tar.gz
curl -L "https://codeberg.org/dnkl/tllist/archive/1.0.5.tar.gz" -o tllist.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
mv $pkgname $pkgname-$pkgver
mkdir $pkgname-$pkgver/build
tar -xf fcft.tar.gz -C $pkgname-$pkgver/subprojects
tar -xf tllist.tar.gz -C $pkgname-$pkgver/subprojects
cd $pkgname-$pkgver
patch -p1 < ../../netbsd-tic.patch
}
build() {
@ -15,8 +21,8 @@ build() {
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
-Dterminfo=disabled \
-Ddefault-terminfo=xterm
-Dterminfo=enabled \
-Ddefault-terminfo=foot
samu
}

23
gui/foot/netbsd-tic.patch Normal file
View File

@ -0,0 +1,23 @@
--- a/meson.build
+++ b/meson.build
@@ -43,7 +43,7 @@
join_paths(get_option('prefix'), terminfo_install_location))],
language: 'c')
else
- terminfo_install_location = join_paths(get_option('datadir'), 'terminfo')
+ terminfo_install_location = get_option('datadir')
endif
# Compute the relative path used by compiler invocations.
@@ -262,9 +262,9 @@
)
custom_target(
'terminfo',
- output: get_option('default-terminfo')[0],
+ output: 'terminfo.cdb',
input: preprocessed,
- command: [tic, '-x', '-o', '@OUTDIR@', '-e', '@0@,@0@-direct'.format(get_option('default-terminfo')), '@INPUT@'],
+ command: [tic, '-x', '-o', '@OUTPUT@', '@INPUT@'],
install: true,
install_dir: terminfo_install_location
)