mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
ghostty: fix cross build, use more system libraries
Co-authored-by: tranzystorekk <tranzystorek.io@protonmail.com>
This commit is contained in:
parent
3f232d127f
commit
6234908d0c
3 changed files with 47 additions and 6 deletions
1
srcpkgs/ghostty-terminfo
Symbolic link
1
srcpkgs/ghostty-terminfo
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
ghostty
|
26
srcpkgs/ghostty/patches/unigen-nolibc.patch
Normal file
26
srcpkgs/ghostty/patches/unigen-nolibc.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
diff --git a/build.zig b/build.zig
|
||||||
|
index c3f7302..9fa73e9 100644
|
||||||
|
--- a/build.zig
|
||||||
|
+++ b/build.zig
|
||||||
|
@@ -1494,7 +1494,7 @@ fn addUnicodeTables(
|
||||||
|
.root_source_file = b.path("src/unicode/props.zig"),
|
||||||
|
.target = b.host,
|
||||||
|
});
|
||||||
|
- exe.linkLibC();
|
||||||
|
+ // exe.linkLibC();
|
||||||
|
if (step_ == null) b.installArtifact(exe);
|
||||||
|
|
||||||
|
const ziglyph_dep = b.dependency("ziglyph", .{
|
||||||
|
diff --git a/src/unicode/props.zig b/src/unicode/props.zig
|
||||||
|
index d77bf4c..994cf36 100644
|
||||||
|
--- a/src/unicode/props.zig
|
||||||
|
+++ b/src/unicode/props.zig
|
||||||
|
@@ -131,7 +131,7 @@ pub fn get(cp: u21) Properties {
|
||||||
|
|
||||||
|
/// Runnable binary to generate the lookup tables and output to stdout.
|
||||||
|
pub fn main() !void {
|
||||||
|
- const alloc = std.heap.c_allocator;
|
||||||
|
+ const alloc = std.heap.page_allocator;
|
||||||
|
|
||||||
|
const gen: lut.Generator(
|
||||||
|
Properties,
|
|
@ -1,11 +1,18 @@
|
||||||
# Template file for 'ghostty'
|
# Template file for 'ghostty'
|
||||||
pkgname=ghostty
|
pkgname=ghostty
|
||||||
version=1.0.0
|
version=1.0.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=zig-build
|
build_style=zig-build
|
||||||
configure_args="-Doptimize=ReleaseFast -Dpie"
|
configure_args="
|
||||||
hostmakedepends="pkg-config"
|
-Doptimize=ReleaseFast
|
||||||
makedepends="gtk4-devel libadwaita-devel"
|
-Dpie
|
||||||
|
-Dversion-string=${version}
|
||||||
|
-fsys=freetype
|
||||||
|
-fsys=fontconfig
|
||||||
|
-fsys=harfbuzz"
|
||||||
|
hostmakedepends="pkg-config glib-devel pandoc"
|
||||||
|
makedepends="fontconfig-devel freetype-devel harfbuzz-devel gtk4-devel libadwaita-devel"
|
||||||
|
depends="ghostty-terminfo-${version}_${revision}"
|
||||||
short_desc="Fast and feature-rich terminal emulator that uses GPU acceleration"
|
short_desc="Fast and feature-rich terminal emulator that uses GPU acceleration"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -15,6 +22,13 @@ checksum=bd12953c8bbe7149e2f94e7e578a88e981932a69aa483f5ce9a2cfba726e0015
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
rm -f "${DESTDIR}/usr/share/man/.placeholder"
|
tic -sx -o ${DESTDIR}/usr/share/terminfo ${DESTDIR}/usr/share/terminfo/ghostty.terminfo
|
||||||
tic -o "${DESTDIR}/usr/share/terminfo" -x "${DESTDIR}/usr/share/terminfo/ghostty.terminfo"
|
rm -f ${DESTDIR}/usr/share/man/.placeholder ${DESTDIR}/usr/share/terminfo/ghostty.{terminfo,termcap}
|
||||||
|
}
|
||||||
|
|
||||||
|
ghostty-terminfo_package() {
|
||||||
|
short_desc+=" - terminfo data"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/share/terminfo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue