42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'goxel'
|
|
pkgname=goxel
|
|
version=0.12.0
|
|
revision=1
|
|
build_style=scons
|
|
make_build_args="mode=release werror=0"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="glfw-devel gtk+3-devel"
|
|
short_desc="Open Source 3D voxel editor"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://guillaumechereau.github.io/goxel/"
|
|
distfiles="https://github.com/guillaumechereau/goxel/archive/v${version}.tar.gz"
|
|
checksum=e3825625e1af9f58593695b0129e39f68a8f3c7d5696c096b8ed2d8b9ac69430
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
pre_build() {
|
|
if [ "$CROSS_BUILD" ];then
|
|
vsed -i SConstruct \
|
|
-e "/conf = env.Configure()/ a env.Replace(CC = \"$CC\")" \
|
|
-e "/conf = env.Configure()/ a env.Replace(CXX = \"$CXX\")"
|
|
fi
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
vsed -i SConstruct \
|
|
-e "/conf = env.Configure()/ a env.Append(LIBS='atomic')"
|
|
fi
|
|
}
|
|
|
|
do_install() {
|
|
sed -i 's|${SNAP}/icon.png|goxel.png|' snap/gui/goxel.desktop
|
|
vbin goxel
|
|
vinstall snap/gui/goxel.desktop 644 usr/share/applications
|
|
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
|
|
}
|