From b9fc76de508af2d092bb84b2380aadafbd042167 Mon Sep 17 00:00:00 2001 From: Javier Caballero Date: Tue, 27 Jul 2021 09:23:30 +0200 Subject: [PATCH] New package: zutty-0.9 Zutty is a GPU accelerated terminal emulator for the X Window System --- srcpkgs/zutty/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/zutty/template diff --git a/srcpkgs/zutty/template b/srcpkgs/zutty/template new file mode 100644 index 000000000000..16450cecfd2c --- /dev/null +++ b/srcpkgs/zutty/template @@ -0,0 +1,29 @@ +# Template file for 'zutty' +pkgname=zutty +version=0.9 +revision=1 +build_style=waf3 +hostmakedepends="pkg-config" +makedepends="python3-devel libglvnd-devel MesaLib-devel freetype-devel libXmu-devel" +depends="libglvnd freetype libXmu font-misc-misc" +short_desc="X terminal emulator rendering through OpenGL ES Compute Shaders" +maintainer="Javier Caballero " +license="GPL-3.0-or-later" +homepage="https://tomscii.sig7.se/zutty" +distfiles="https://github.com/tomszilagyi/zutty/archive/refs/tags/${version}.tar.gz" +checksum=9aaf115a806114a793a6a423384781cada7a767efc209b6c6a59f3eddc942c3e + +post_patch() { + vsed -i wscript -e "s|, '-march=native', '-mtune=native'||g" +} + +post_install() { + # Copy icons + vinstall icons/zutty.svg 644 usr/share/icons/hicolor/scalable/apps + for _res in 16 32 48 64 128; do + vinstall icons/zutty_${_res}x${_res}.png 644 usr/share/icons/hicolor/${_res}x${_res}/apps zutty.png + done + # Copy desktop entry + vmkdir usr/share/applications/ + vinstall icons/zutty.desktop 644 usr/share/applications +}