Commit 477e0ef7 authored by Victor Diego Alejandro Diaz Urbaneja's avatar Victor Diego Alejandro Diaz Urbaneja Committed by Leo

testing/goxel: new aport

Open Source 3D voxel editor for Mac, Windows and Linux.
https://goxel.xyz/
parent 17a7d8ae
Pipeline #72936 passed with stages
in 3 minutes and 26 seconds
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=goxel
pkgver=0.10.7
pkgrel=0
pkgdesc="Open source 3D voxel editor"
url="https://goxel.xyz/"
arch="x86_64 x86" # only available on x86_64 and x86 due to compiling problems
license="GPL-3.0-only"
makedepends="scons glfw-dev gtk+3.0-dev"
options="!check" # check function not implemented
source="https://github.com/guillaumechereau/goxel/archive/v$pkgver/goxel-$pkgver.tar.gz
goxel.desktop
fix-musl.patch
"
build() {
scons mode=release
}
package() {
install -Dm775 goxel "$pkgdir"/usr/bin/goxel
install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/goxel.png
install -Dm644 "$srcdir"/goxel.desktop "$pkgdir"/usr/share/applications/goxel.desktop
}
sha512sums="7d78b97c81c554ccea16d62ace4a53bbb8b09d794f1762dff09f55221d8c059557f684cbab61f2d6f6f08ec9754d8b188cc779073bb05a7ad4ef914cb2c2106b goxel-0.10.7.tar.gz
99bd1c53c5db15412cd4d8a9454e9e6a0803209a4969bba052b95ba51b17ac43054c8c00d7cd89ab6b85f006a53b2b38d168dc290be3778966af79a67a5928ff fix-musl.patch
10662d11d73a51d06db753b4f1727e05b1b9a5ef63ee4321cd4f445806f6162af010f89d7f98ff3ba25df14df1fb9bc8693a98d93206af208fdb28b7a49e46e9 goxel.desktop"
--- a/ext_src/yocto/ext/filesystem.hpp
+++ b/ext_src/yocto/ext/filesystem.hpp
@@ -1531,8 +1531,8 @@
return rc == 0 ? (const char*)buffer : "Error in strerror_r!";
#else
char buffer[512];
- char* msg = strerror_r(code ? code : errno, buffer, sizeof(buffer));
- return msg ? msg : buffer;
+ int msg = strerror_r(code ? code : errno, buffer, sizeof(buffer));
+ return msg == 0 ? (const char*)buffer : "Error in strerror_r!";
#endif
}
[Desktop Entry]
Version=1.0
Type=Application
Name=Goxel
Exec=goxel
Icon=goxel
Categories=Graphics;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment