You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

63 lines
1.8 KiB

  1. pkgname=('foot-git' 'foot-terminfo-git')
  2. pkgver=1.5.2
  3. pkgrel=1
  4. arch=('x86_64' 'aarch64')
  5. url=https://codeberg.org/dnkl/foot
  6. license=(mit)
  7. makedepends=('meson' 'ninja' 'scdoc' 'python' 'ncurses' 'wayland-protocols' 'tllist>=1.0.4')
  8. depends=('libxkbcommon' 'wayland' 'pixman' 'fontconfig' 'fcft>=2.3.0')
  9. source=()
  10. pkgver() {
  11. cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  12. head -3 ../meson.build | grep version | cut -d "'" -f 2
  13. }
  14. build() {
  15. # makepkg uses -O2 by default, but we *really* want -O3
  16. # -Wno-missing-profile since we're not exercising everything when doing PGO builds
  17. # -fno-plt because performance (this is the default in makepkg anyway)
  18. export CFLAGS+=" -O3 -Wno-missing-profile -fno-plt"
  19. meson --prefix=/usr --buildtype=release --wrap-mode=nofallback -Db_lto=true ..
  20. if [[ -v WAYLAND_DISPLAY ]]; then
  21. meson configure -Db_pgo=generate
  22. find -name "*.gcda" -delete
  23. ninja
  24. tmp_file=$(mktemp)
  25. ./foot --config /dev/null --term=xterm -- sh -c "../scripts/generate-alt-random-writes.py --scroll --scroll-region --colors-regular --colors-bright --colors-rgb ${tmp_file} && cat ${tmp_file}"
  26. rm "${tmp_file}"
  27. meson configure -Db_pgo=use
  28. fi
  29. ninja
  30. }
  31. check() {
  32. ninja test
  33. }
  34. package_foot-git() {
  35. pkgdesc="A wayland native terminal emulator"
  36. changelog=CHANGELOG.md
  37. optdepends=('foot-terminfo: terminfo for foot')
  38. conflicts=('foot')
  39. provides=('foot')
  40. DESTDIR="${pkgdir}/" ninja install
  41. rm -rf "${pkgdir}/usr/share/terminfo"
  42. }
  43. package_foot-terminfo-git() {
  44. pkgdesc="Terminfo files for the foot terminal emulator"
  45. depends=('ncurses')
  46. conflicts=('foot-terminfo')
  47. provides=('foot-terminfo')
  48. install -dm 755 "${pkgdir}/usr/share/terminfo/f/"
  49. cp f/* "${pkgdir}/usr/share/terminfo/f/"
  50. }