aboutsummaryrefslogtreecommitdiffstats
path: root/community/foot/APKBUILD
blob: 03c4692ad63acae1e63856257baf7c73781c8b95 (plain) (blame)
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
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=foot
pkgver=1.8.2
pkgrel=2
pkgdesc="A fast, lightweight and minimalistic Wayland terminal emulator"
url="https://codeberg.org/dnkl/foot.git"
arch="all !ppc64le" # ppc64le build fails
license="MIT"
depends="ncurses-terminfo-base"
makedepends="
	meson
	scdoc
	fcft-dev
	tllist-dev
	libxkbcommon-dev
	wayland-dev
	pixman-dev
	freetype-dev
	fontconfig-dev
	wayland-protocols
	ncurses
	utf8proc-dev
	"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion
	"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/dnkl/foot/archive/$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/foot"

build() {
	export CFLAGS="$CFLAGS -O3"	 # -O3 as the package is intended to use it
	abuild-meson . 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
	rm "$pkgdir"/usr/share/terminfo/f/foot
	rm "$pkgdir"/usr/share/terminfo/f/foot-direct
}

sha512sums="
8442761f20d8d5e315c2cbf75c40a6fd8e449f6ce515a1a3aac2106b4c9d7c8257ed96b5e1808eb0e9fda448a2a1bbb6b55cfb8d7abd6acb184cabcdc43d5fa5  foot-1.8.2.tar.gz
"