foot: fix terminfo
This commit is contained in:
parent
629d1713eb
commit
af3aacaebc
2 changed files with 33 additions and 4 deletions
|
@ -2,10 +2,16 @@ pkgname=foot
|
||||||
pkgver=1.10.3
|
pkgver=1.10.3
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
curl -L "https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz
|
curl -L "https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||||
tar -xf $pkgname-$pkgver.tar.xz
|
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
|
mv $pkgname $pkgname-$pkgver
|
||||||
mkdir $pkgname-$pkgver/build
|
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() {
|
build() {
|
||||||
|
@ -15,8 +21,8 @@ build() {
|
||||||
--buildtype=release \
|
--buildtype=release \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libexecdir=lib \
|
--libexecdir=lib \
|
||||||
-Dterminfo=disabled \
|
-Dterminfo=enabled \
|
||||||
-Ddefault-terminfo=xterm
|
-Ddefault-terminfo=foot
|
||||||
samu
|
samu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
23
gui/foot/netbsd-tic.patch
Normal file
23
gui/foot/netbsd-tic.patch
Normal 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
|
||||||
|
)
|
Loading…
Reference in a new issue