summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc5f790964970017f659774192a4655a7212a160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
# Contributor: Caleb Maclennan <caleb@alerque.com>
# Contributor: Daniel Eklöf <daniel at ekloef dot se>

pkgdesc='Wayland terminal emulator. Git builds without any custom tinkering.'
pkgname=foot-upstream-git
pkgver=1.13.1.r78.g3ba03901
pkgrel=1
conflicts=('foot')
provides=('foot')
arch=('x86_64' 'aarch64')
url=https://codeberg.org/dnkl/foot
license=(MIT)
depends=('libxkbcommon' 'wayland' 'pixman' 'fontconfig' 'libutf8proc' 'ncurses' 'fcft>=3.0.0')
makedepends=(
  git
  fcft
  fontconfig
  libutf8proc
  libxkbcommon
  llvm
  meson
  ncurses
  ninja
  pixman
  python
  scdoc
  sway
  tllist
  wayland
  wayland-protocols
  xorg-xwayland
)
checkdepends=('check')
optdepends=(
  "foot-terminfo: alternative to ncurses' terminfo, with additional non-standard capabilities"
  "libnotify: desktop notifications"
  "xdg-utils: URI launching"
  "bash-completion: bash completions for foot itself"
)
source=(git+https://codeberg.org/dnkl/foot.git)
sha256sums=('SKIP')

pkgver() {
  cd foot
  git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd foot
  ./pgo/pgo.sh \
    partial \
    . build \
    -Dterminfo=disabled \
    --prefix=/usr \
    --wrap-mode=nodownload
}

check() {
  cd foot
  ninja -C build test
}

package() {
  cd foot
  DESTDIR="${pkgdir}/" ninja -C build install
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/foot/LICENSE"
}