blob: 69f1c0d3bf5534e19e02ee46a2c7568bc6c2abf3 (
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
|
# Maintainer: Vladislav Nepogodin <nepogodin.vlad@gmail.com>
pkgname=contour-git
pkgver=0.3.12.r3703.7963c6d7
pkgrel=1
pkgdesc="Modern C++ Terminal Emulator"
arch=(x86_64 aarch64)
url="https://github.com/contour-terminal/contour"
license=('Apache-2.0')
depends=('harfbuzz' 'fontconfig' 'yaml-cpp' 'qt6-base' 'qt6-multimedia' 'qt6-5compat' 'libutempter')
makedepends=('cmake' 'extra-cmake-modules' 'git' 'ninja' 'libxml2'
'python' 'catch2' 'range-v3' 'fmt' 'microsoft-gsl')
source=("${pkgname}::git+https://github.com/contour-terminal/contour.git")
sha512sums=('SKIP')
provides=('contour')
conflicts=('contour')
options=(!strip)
pkgver() {
cd "${srcdir}/${pkgname}"
_pkgver="$(xmllint --xpath 'string(/component/releases/release[1]/@version)' metainfo.xml)"
printf "${_pkgver}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
_cpuCount=$(grep -c -w ^processor /proc/cpuinfo)
CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS}
CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS}
PREPARE_ONLY_EMBEDS=ON OS_OVERRIDE=arch ${pkgname}/scripts/install-deps.sh
cmake -S"${pkgname}" -Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCONTOUR_QT_VERSION=6
cmake --build build --parallel $_cpuCount
}
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}"
"${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
cd "${srcdir}/${pkgname}"
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set sw=2 sts=2 et:
|