From 9203e0f93220a83afba846cb355fa29940e71de2 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Mon, 11 Dec 2023 07:22:56 -0500 Subject: [PATCH] New package: contour-0.4.1.6292 --- srcpkgs/contour-shell-integration | 1 + srcpkgs/contour-terminfo | 1 + .../contour/patches/0000-phtread_musl.patch | 15 ++++++++ srcpkgs/contour/template | 34 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 120000 srcpkgs/contour-shell-integration create mode 120000 srcpkgs/contour-terminfo create mode 100644 srcpkgs/contour/patches/0000-phtread_musl.patch create mode 100644 srcpkgs/contour/template diff --git a/srcpkgs/contour-shell-integration b/srcpkgs/contour-shell-integration new file mode 120000 index 00000000000000..3a8fa0e2050f07 --- /dev/null +++ b/srcpkgs/contour-shell-integration @@ -0,0 +1 @@ +contour \ No newline at end of file diff --git a/srcpkgs/contour-terminfo b/srcpkgs/contour-terminfo new file mode 120000 index 00000000000000..3a8fa0e2050f07 --- /dev/null +++ b/srcpkgs/contour-terminfo @@ -0,0 +1 @@ +contour \ No newline at end of file diff --git a/srcpkgs/contour/patches/0000-phtread_musl.patch b/srcpkgs/contour/patches/0000-phtread_musl.patch new file mode 100644 index 00000000000000..557112d8b81d0c --- /dev/null +++ b/srcpkgs/contour/patches/0000-phtread_musl.patch @@ -0,0 +1,15 @@ +--- a/src/crispy/utils.cpp ++++ b/src/crispy/utils.cpp +@@ -31,8 +31,12 @@ + } + return ""s; + #else ++ #ifdef __GLIBC__ + char text[32] = {}; + pthread_getname_np(pthread_self(), text, sizeof(text)); + return text; ++ #else ++ return ""s; ++ #endif + #endif + } diff --git a/srcpkgs/contour/template b/srcpkgs/contour/template new file mode 100644 index 00000000000000..6dda7c2ed8e896 --- /dev/null +++ b/srcpkgs/contour/template @@ -0,0 +1,34 @@ +# Template file for 'contour' +pkgname=contour +version=0.4.1.6292 +revision=1 +build_style=cmake +build_helper="qemu" +configure_args="-DCONTOUR_QT_VERSION=6 -DCONTOUR_TESTING=OFF + -DCRISPY_TESTING=OFF -DVTPARSER_TESTING=OFF -DLIBTERMINAL_TESTING=OFF" +hostmakedepends="pkg-config qt6-base qt6-tools" +makedepends="boxed-cpp fmt-devel guidelines-support-library freetype-devel + harfbuzz-devel libunicode-devel libutempter-devel range-v3 yaml-cpp-devel + qt6-base-devel qt6-core qt6-declarative-devel qt6-gui qt6-multimedia-devel + qt6-network qt6-opengl-widgets qt6-qt5compat-devel qt6-widgets" +depends="contour-terminfo-${version}_${revision} contour-shell-integration-${version}_${revision}" +short_desc="Modern C++ Terminal Emulator" +maintainer="0x5c " +license="Apache-2.0" +homepage="http://contour-terminal.org/" +distfiles="https://github.com/contour-terminal/contour/archive/refs/tags/v${version}.tar.gz" +checksum=3755dd93065b7cfab7eafedf6c2e8c00b9ca1b028f9fa2742905efe06f6084d1 + +contour-terminfo_package() { + short_desc+=" - terminfo data" + pkg_install() { + vmove usr/share/terminfo + } +} + +contour-shell-integration_package() { + short_desc+=" - shell integration scripts" + pkg_install() { + vmove usr/share/contour/shell-integration + } +}