mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
Rename package: Slic3rPE-1.42.0 to PrusaSlicer-2.0.0
This commit is contained in:
parent
50e5a11fe8
commit
bbe9b826d2
7 changed files with 56 additions and 49 deletions
4
srcpkgs/PrusaSlicer/INSTALL.msg
Normal file
4
srcpkgs/PrusaSlicer/INSTALL.msg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Slic3rPE has been renamed to PrusaSlicer
|
||||||
|
|
||||||
|
The binary executable has been renamed from
|
||||||
|
/usr/bin/slic3r-pe to /usr/bin/prusa-slicer
|
4
srcpkgs/PrusaSlicer/Slic3rPE.INSTALL.msg
Normal file
4
srcpkgs/PrusaSlicer/Slic3rPE.INSTALL.msg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Slic3rPE has been renamed to PrusaSlicer
|
||||||
|
|
||||||
|
The binary executable has been renamed from
|
||||||
|
/usr/bin/slic3r-pe to /usr/bin/prusa-slicer
|
|
@ -0,0 +1,25 @@
|
||||||
|
From 7cdeb3dfbe01fc681c35e89e3f509c8e7ac9522e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jasper Chan <jasperchan515@gmail.com>
|
||||||
|
Date: Mon, 27 May 2019 18:54:59 -0700
|
||||||
|
Subject: [PATCH] Replace sys/unistd.h with unistd.h for musl
|
||||||
|
|
||||||
|
---
|
||||||
|
src/slic3r/Utils/Serial.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git src/slic3r/Utils/Serial.cpp src/slic3r/Utils/Serial.cpp
|
||||||
|
index 601719b50..43dab2390 100644
|
||||||
|
--- src/slic3r/Utils/Serial.cpp
|
||||||
|
+++ src/slic3r/Utils/Serial.cpp
|
||||||
|
@@ -42,7 +42,7 @@
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
- #include <sys/unistd.h>
|
||||||
|
+ #include <unistd.h>
|
||||||
|
#include <sys/select.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
22
srcpkgs/PrusaSlicer/template
Normal file
22
srcpkgs/PrusaSlicer/template
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Template file for 'PrusaSlicer'
|
||||||
|
pkgname=PrusaSlicer
|
||||||
|
version=2.0.0
|
||||||
|
revision=1
|
||||||
|
wrksrc="PrusaSlicer-version_${version}${_status}"
|
||||||
|
build_style=cmake
|
||||||
|
configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1"
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="boost-devel tbb-devel libcurl-devel nlopt-devel gtest-devel
|
||||||
|
wxWidgets-devel glu-devel libpng-devel"
|
||||||
|
short_desc="G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)"
|
||||||
|
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://www.prusa3d.com/prusaslicer/"
|
||||||
|
distfiles="https://github.com/prusa3d/Prusaslicer/archive/version_${version}.tar.gz"
|
||||||
|
checksum=5d3c7fd745f2875be55f316cd779805ce1b6ce38634f0f4b0ccd01884da731b3
|
||||||
|
nocross="tries to run avrdude-conf-gen which is compiled for target"
|
||||||
|
|
||||||
|
Slic3rPE_package() {
|
||||||
|
build_style=meta
|
||||||
|
depends=${pkgname}
|
||||||
|
}
|
1
srcpkgs/Slic3rPE
Symbolic link
1
srcpkgs/Slic3rPE
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
PrusaSlicer
|
|
@ -1,27 +0,0 @@
|
||||||
diff --git src/png/error.hpp src/png/error.hpp
|
|
||||||
index c67f976..8ee2c87 100644
|
|
||||||
--- src/png/error.hpp
|
|
||||||
+++ src/png/error.hpp
|
|
||||||
@@ -100,7 +100,7 @@ namespace png
|
|
||||||
strerror_s(buf, ERRBUF_SIZE, errnum);
|
|
||||||
return std::string(buf);
|
|
||||||
#else
|
|
||||||
-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE
|
|
||||||
+#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE || !defined(__GLIBC__)
|
|
||||||
char buf[ERRBUF_SIZE] = { 0 };
|
|
||||||
strerror_r(errnum, buf, ERRBUF_SIZE);
|
|
||||||
return std::string(buf);
|
|
||||||
diff --git src/slic3r/Utils/Serial.cpp src/slic3r/Utils/Serial.cpp
|
|
||||||
index 601719b..43dab23 100644
|
|
||||||
--- src/slic3r/Utils/Serial.cpp
|
|
||||||
+++ src/slic3r/Utils/Serial.cpp
|
|
||||||
@@ -42,7 +42,7 @@
|
|
||||||
#ifndef _WIN32
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
- #include <sys/unistd.h>
|
|
||||||
+ #include <unistd.h>
|
|
||||||
#include <sys/select.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
# Template file for 'Slic3rPE'
|
|
||||||
pkgname=Slic3rPE
|
|
||||||
version=1.42.0
|
|
||||||
revision=2
|
|
||||||
_status="-beta"
|
|
||||||
wrksrc="Slic3r-version_${version}${_status}"
|
|
||||||
build_style=cmake
|
|
||||||
configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1"
|
|
||||||
hostmakedepends="pkg-config"
|
|
||||||
makedepends="boost-devel tbb-devel libcurl-devel nlopt-devel gtest-devel
|
|
||||||
wxWidgets-devel glu-devel libpng-devel"
|
|
||||||
short_desc="G-code generator for 3D printers, Prusa Edition"
|
|
||||||
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
|
||||||
license="GPL-3.0-or-later"
|
|
||||||
homepage="https://www.prusa3d.com/slic3r-prusa-edition/"
|
|
||||||
distfiles="https://github.com/prusa3d/Slic3r/archive/version_${version}${_status}.tar.gz"
|
|
||||||
checksum=d33f20b51dcf58eb048780df050e859969fbd8bcb8534f93a588035179804fcd
|
|
||||||
nocross="tries to run avrdude-conf-gen which is compiled for target"
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
mv ${DESTDIR}/usr/bin/slic3r-{gui,pe}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue