blob: 4608d2fd9764a4bc04613d5f88c09a52658d0198 (
plain)
1 # Description: A fast, lightweight and minimalistic Wayland terminal emulator
2 # URL: https://codeberg.org/dnkl/foot
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: fcft foot-terminfo libxkbcommon
5 # Optional: utf8proc
6
7 name=foot
8 version=1.13.1
9 release=1
10 source=(https://codeberg.org/dnkl/foot/archive/$version.tar.gz)
11
12 build() {
13 prt-get isinst utf8proc && PKGMK_FOOT+=' -D grapheme-clustering=enabled'
14
15 # doing the lto dance
16 export CFLAGS='-march=x86-64 -O3 -Wno-missing-profile -Wno-error'
17 meson setup $name build $PKGMK_FOOT \
18 --prefix=/usr \
19 --buildtype=release \
20 -D b_lto=true \
21 -D b_pgo=generate \
22 --wrap-mode=nodownload \
23 -D terminfo=disabled
24
25 find -name "*.gcda" -delete
26 meson compile -C build
27 local script_options="--scroll --scroll-region --colors-regular --colors-bright --colors-256 --colors-rgb --attr-bold --attr-italic --attr-underline --sixel"
28
29 tmp_file=$(mktemp)
30 if [[ -v WAYLAND_DISPLAY ]]; then
31 local tmp_file=$(mktemp)
32 export LC_ALL=en_US.UTF-8
33 build/footclient --version
34 build/foot \
35 --config /dev/null \
36 --term=xterm \
37 sh -c "sleep 2 && $SRC/$name/scripts/generate-alt-random-writes.py ${script_options} ${tmp_file} && cat ${tmp_file}" | true
38 else
39 build/footclient --version
40 build/foot --version
41 $SRC/$name/scripts/generate-alt-random-writes.py \
42 --rows=67 \
43 --cols=135 \
44 $script_options \
45 $tmp_file
46 build/pgo $tmp_file $tmp_file $tmp_file
47 fi
48 rm $tmp_file
49 meson configure -D b_pgo=use build
50 meson compile -C build
51 DESTDIR=$PKG meson install -C build
52
53 rm -r $PKG/usr/share/{doc,fish}
54 prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
55 prt-get isinst zsh || rm -r $PKG/usr/share/zsh
56 }
|