mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
PKGBUILD: drop
The bundled PKGBUILD has been pretty much identical to the one in the AUR package “foot-git” for a long time now.
This commit is contained in:
parent
64f71c32f0
commit
a08f4bc551
3 changed files with 11 additions and 83 deletions
|
|
@ -63,6 +63,10 @@
|
|||
|
||||
### Deprecated
|
||||
### Removed
|
||||
|
||||
* The bundled PKGBUILD.
|
||||
|
||||
|
||||
### Fixed
|
||||
|
||||
* ‘Sticky’ modifiers in input handling; when determining modifier
|
||||
|
|
|
|||
18
INSTALL.md
18
INSTALL.md
|
|
@ -91,13 +91,8 @@ Install from AUR:
|
|||
* [foot-git](https://aur.archlinux.org/packages/foot-git/) +
|
||||
[foot-terminfo-git](https://aur.archlinux.org/packages/foot-terminfo-git/)
|
||||
|
||||
Or use [makepkg](https://wiki.archlinux.org/title/Makepkg) to
|
||||
build the bundled [PKGBUILD](PKGBUILD) (run `makepkg` in the source
|
||||
root directory).
|
||||
|
||||
The AUR packages, and the bundled PKGBUILD alike, will attempt to do a
|
||||
PGO build. This can be tweaked, or disabled, by modifying the `PGO`
|
||||
variable in the `PKGBUILD`.
|
||||
The AUR packages, will attempt to do a PGO build. This can be tweaked,
|
||||
or disabled, by modifying the `PGO` variable in the `PKGBUILD`.
|
||||
|
||||
|
||||
## Other
|
||||
|
|
@ -106,10 +101,11 @@ Foot uses _meson_. If you are unfamiliar with it, the official
|
|||
[tutorial](https://mesonbuild.com/Tutorial.html) might be a good
|
||||
starting point.
|
||||
|
||||
I also recommend taking a look at the bundled Arch
|
||||
[PKGBUILD](PKGBUILD) file, to see how it builds foot. Especially so if
|
||||
you intend to install a release build of foot, in which case you might
|
||||
be interested in the compiler flags used there.
|
||||
I also recommend taking a look at the Arch AUR package’s
|
||||
[PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=foot)
|
||||
file, to see how it builds foot. Especially so if you intend to
|
||||
install a release build of foot, in which case you might be interested
|
||||
in the compiler flags used there.
|
||||
|
||||
A note on terminfo; the terminfo database exposes terminal
|
||||
capabilities to the applications running inside the terminal. As such,
|
||||
|
|
|
|||
72
PKGBUILD
72
PKGBUILD
|
|
@ -1,72 +0,0 @@
|
|||
# Select PGO (Performance Guided Optimizations) build type.
|
||||
#
|
||||
# - auto: choose best available option
|
||||
#
|
||||
# - none: disable PGO
|
||||
#
|
||||
# - full-current-session: run a “full” PGO build in an existing
|
||||
# Wayland session. This will pop up a foot window running a script
|
||||
# that generates random terminal output.
|
||||
#
|
||||
# - full-headless-sway: run a “full” PGO build inside a headless Sway
|
||||
# instance. Requires Sway >= 1.7.
|
||||
#
|
||||
# - full-headless-cage: run a “full” PGO build inside a headless Cage
|
||||
# instance. Requires cage to be installed. Will generate lots of
|
||||
# Cage warnings, but seems to produce a fully working (and well
|
||||
# optimized) foot build.
|
||||
#
|
||||
# - partial: run a “partial” PGO build. This requires neither a
|
||||
# running Wayland session, nor an installed Wayland compositor, but
|
||||
# the resulting binary is slower compared to “full” PGO builds
|
||||
# (though still faster than regular release builds).
|
||||
#
|
||||
# Note that “full-*” (which “auto” will prefer) requires an UTF-8
|
||||
# locale. Either make sure LC_CTYPE is set to an UTF-8 locale, or do a
|
||||
# “partial” PGO build (or disable PGO altoghether).
|
||||
|
||||
PGO=auto
|
||||
|
||||
pkgname=('foot-git' 'foot-terminfo-git')
|
||||
pkgver=1.9.2
|
||||
pkgrel=1
|
||||
arch=('x86_64' 'aarch64')
|
||||
url=https://codeberg.org/dnkl/foot
|
||||
license=(mit)
|
||||
depends=('libxkbcommon' 'wayland' 'pixman' 'fontconfig' 'libutf8proc' 'fcft>=2.4.0')
|
||||
makedepends=('meson' 'ninja' 'scdoc' 'python' 'ncurses' 'wayland-protocols' 'tllist>=1.0.4')
|
||||
source=()
|
||||
|
||||
pkgver() {
|
||||
cd ../.git &> /dev/null && git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
|
||||
head -3 ../meson.build | grep version | cut -d "'" -f 2
|
||||
}
|
||||
|
||||
build() {
|
||||
../pgo/pgo.sh ${PGO} .. . --prefix=/usr --wrap-mode=nofallback
|
||||
}
|
||||
|
||||
check() {
|
||||
ninja test
|
||||
}
|
||||
|
||||
package_foot-git() {
|
||||
pkgdesc="A wayland native terminal emulator"
|
||||
changelog=CHANGELOG.md
|
||||
depends+=('foot-terminfo')
|
||||
conflicts=('foot')
|
||||
provides=('foot')
|
||||
|
||||
DESTDIR="${pkgdir}/" ninja install
|
||||
rm -rf "${pkgdir}/usr/share/terminfo"
|
||||
}
|
||||
|
||||
package_foot-terminfo-git() {
|
||||
pkgdesc="Terminfo files for the foot terminal emulator"
|
||||
depends=('ncurses')
|
||||
conflicts=('foot-terminfo')
|
||||
provides=('foot-terminfo')
|
||||
|
||||
install -dm 755 "${pkgdir}/usr/share/terminfo/f/"
|
||||
cp f/* "${pkgdir}/usr/share/terminfo/f/"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue