void-packages/srcpkgs/goxel/template
cr6git 8e6503dccb New package: goxel-0.7.3
Closes #13628.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-20 17:35:37 +02:00

31 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
}