blob: 7deab87bdb72c0267a7c8f7f377a9b81b72064a1 (
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
69
70
71
72
73
74
75
|
# Maintainer: Peter Jung <ptr1337@cachyos.org>
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
pkgname=contour
pkgver=0.5.1.7247
pkgrel=1
pkgdesc="Modern C++ Terminal Emulator"
arch=(x86_64 aarch64)
url="https://github.com/contour-terminal/contour"
license=('Apache-2.0')
depends=(
fontconfig
harfbuzz
libunicode
libutempter
qt6-5compat
qt6-base
qt6-declarative
qt6-multimedia
qt6-shadertools
qt6-wayland
yaml-cpp
)
makedepends=(
boxed-cpp
catch2
cmake
extra-cmake-modules
fmt
git
libxml2
microsoft-gsl
ninja
python
range-v3
)
optdepends=('ncurses: for contour terminfo database')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('0c763e543b5a279bb1b9cc1be95607354e817ba8f166aff9554c9157be7959d60e635406fce3d8ba2e15be9a62d46335ead2a497a0dcc3301249f16b317c5b69')
build() {
cmake -S"${pkgname}-${pkgver}" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCONTOUR_QT_VERSION=6 \
-DCONTOUR_TESTING=ON
cmake --build build
}
check() {
# for running tests, it is (currently) expected to be executed
# from within the source code's project root directory, in order to
# access some test files.
cd "${srcdir}/${pkgname}-${pkgver}"
"${srcdir}"/build/src/contour/contour version
"${srcdir}"/build/src/crispy/crispy_test
"${srcdir}"/build/src/vtparser/vtparser_test
"${srcdir}"/build/src/vtbackend/vtbackend_test
}
package() {
cd "${srcdir}/build"
DESTDIR="${pkgdir}" cmake --build . --target install
# provided by ncurses now
rm -rf "${pkgdir}/usr/share/terminfo"
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set sw=2 sts=2 et:
|