diff options
Diffstat (limited to 'community/foot/APKBUILD')
-rw-r--r-- | community/foot/APKBUILD | 75 |
1 files changed, 50 insertions, 25 deletions
diff --git a/community/foot/APKBUILD b/community/foot/APKBUILD index d7e74e78f6c..683ce0e8803 100644 --- a/community/foot/APKBUILD +++ b/community/foot/APKBUILD @@ -1,54 +1,79 @@ # Maintainer: Alex McGrath <amk@amk.ie> pkgname=foot -pkgver=1.8.2 -pkgrel=0 -pkgdesc="A fast, lightweight and minimalistic Wayland terminal emulator" -url="https://codeberg.org/dnkl/foot.git" -arch="all !ppc64le" # ppc64le build fails +pkgver=1.16.2 +pkgrel=1 +pkgdesc="Fast, lightweight and minimalistic Wayland terminal emulator" +url="https://codeberg.org/dnkl/foot" license="MIT" +arch="all" +depends="ncurses-terminfo" makedepends=" + cage + font-dejavu + fcft-dev + fontconfig-dev + freetype-dev + libxkbcommon-dev meson + ncurses + pixman-dev scdoc - fcft-dev tllist-dev - libxkbcommon-dev + utf8proc-dev wayland-dev - pixman-dev - freetype-dev - fontconfig-dev wayland-protocols - ncurses - utf8proc-dev " subpackages=" + $pkgname-dbg $pkgname-doc $pkgname-bash-completion - $pkgname-zsh-completion $pkgname-fish-completion - $pkgname-terminfo::noarch + $pkgname-zsh-completion + $pkgname-extra-terminfo:_extra_terminfo:noarch + $pkgname-themes:_themes:noarch " -source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz" -options="!check" # No tests +source=" + $pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz + " +options="!check" # ran during profiling builddir="$srcdir/foot" build() { - export CFLAGS="$CFLAGS -O3" # -O3 as the package is intended to use it - abuild-meson . output + export CFLAGS="$CFLAGS -O3" # -O3 as the package is intended to use it + export CXXFLAGS="$CXXFLAGS -O3" + export CPPFLAGS="$CPPFLAGS -O3" + + abuild-meson \ + -Db_pgo=generate \ + -Db_lto=true \ + -Dterminfo-base-name=foot-extra \ + -Dutmp-backend=none \ + . output + meson compile -C output + + ninja -C output test + ./pgo/full-headless-cage.sh . output + + meson configure -Db_pgo=use output meson compile -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output - install -Dm644 foot.ini "$pkgdir"/usr/share/foot/foot.ini - mv "$pkgdir"/usr/share/fish/vendor_completions.d "$pkgdir"/usr/share/fish/completions } -terminfo() { - pkgdesc="$pkgdesc (terminfo data)" - install -dm 755 "$subpkgdir/usr/share/terminfo/f/" - cp $builddir/output/f/* "$subpkgdir/usr/share/terminfo/f/" +_extra_terminfo() { + pkgdesc="$pkgdesc (extra terminfo data)" + + amove /usr/share/terminfo/f +} + +_themes() { + pkgdesc="$pkgdesc (color schemes)" + + amove /usr/share/foot/themes } sha512sums=" -8442761f20d8d5e315c2cbf75c40a6fd8e449f6ce515a1a3aac2106b4c9d7c8257ed96b5e1808eb0e9fda448a2a1bbb6b55cfb8d7abd6acb184cabcdc43d5fa5 foot-1.8.2.tar.gz +c357f4c8479e70ba716ab65ddc6605c1705702306273eb6de9797892c7b2a6ea5b8c1b05d74f552f630307356ce2b5546a5bed8ae38dc3d45f090a77cb74bb49 foot-1.16.2.tar.gz " |