2017-08-16 01:28:41 +02:00
|
|
|
# Template file for 'goxel'
|
|
|
|
pkgname=goxel
|
2018-04-26 15:40:37 +02:00
|
|
|
version=0.8.0
|
2017-08-16 01:28:41 +02:00
|
|
|
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"
|
2018-04-26 15:40:37 +02:00
|
|
|
checksum=2fb9328e27b4f24f2ddff9e79f01832661fd626b52fa0079039cbb64a3e704ca
|
2017-08-16 01:28:41 +02:00
|
|
|
|
|
|
|
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";;
|
2018-04-26 15:40:37 +02:00
|
|
|
i686*) make_build_args+=" cycles=0";;
|
2017-08-16 01:28:41 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
do_install() {
|
2018-04-26 15:40:37 +02:00
|
|
|
sed -i 's|${SNAP}/icon.png|goxel.png|' snap/gui/goxel.desktop
|
2017-08-16 01:28:41 +02:00
|
|
|
vbin goxel
|
|
|
|
vinstall snap/gui/goxel.desktop 644 usr/share/applications
|
2018-04-26 15:40:37 +02:00
|
|
|
for size in 16 24 32 48 64 128 256; do
|
|
|
|
vinstall data/icons/icon${size}.png 644 \
|
|
|
|
usr/share/icons/hicolor/${size}x${size}/apps goxel.png
|
|
|
|
done
|
|
|
|
vinstall snap/gui/io.github.guillaumechereau.Goxel.appdata.xml 644 usr/share/metainfo
|
2017-08-16 01:28:41 +02:00
|
|
|
}
|