void-packages/srcpkgs/goxel/template

32 lines
960 B
Bash

# Template file for 'goxel'
pkgname=goxel
version=0.7.3
revision=1
build_style=scons
make_build_args="debug=0 werror=0"
hostmakedepends="pkg-config scons"
makedepends="glfw-devel gtk+3-devel"
short_desc="Open Source 3D voxel editor"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://guillaumechereau.github.io/goxel/"
distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
checksum=56790d96d9d52d37765ac5c59f924c007885daaa6fb2129baea51dff5380c15c
if [ "$CROSS_BUILD" ];then
pre_build() {
sed -i -e "/conf = env.Configure()/ a env.Replace(CC = \"$CC\")\nenv.Replace(CXX = \"$CXX\")" SConstruct
}
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone";;
esac
do_install() {
sed -i 's|${SNAP}/icon.png|/usr/share/icons/goxel.png|' snap/gui/goxel.desktop
vbin goxel
vinstall snap/gui/goxel.desktop 644 usr/share/applications
vinstall icon.png 644 usr/share/icons goxel.png
}