37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'zutty'
|
|
pkgname=zutty
|
|
version=0.12
|
|
revision=1
|
|
build_style=waf3
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libglvnd-devel freetype-devel libXmu-devel"
|
|
depends="font-misc-misc"
|
|
short_desc="X terminal emulator rendering through OpenGL ES Compute Shaders"
|
|
maintainer="Javier Caballero <jacallo@protonmail.com>"
|
|
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=750daed8625a2486a33b872d59242efba7ee21af282ccfd4a7dbf12d21d7cee7
|
|
|
|
post_extract() {
|
|
# waf file is self extracting archive written in python
|
|
# it self extracts in top level, then runs extracted module in __main__
|
|
# importing allows to patch contents of archive
|
|
cp waf waf.py
|
|
sed -i '/__name__.*__main__/i sys.exit(0)' waf.py
|
|
python3 waf.py
|
|
ln -s .waf3-* .waf3
|
|
rm waf.py
|
|
}
|
|
|
|
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
|
|
}
|