initial commit
This commit is contained in:
commit
74b5ac237d
2 changed files with 102 additions and 0 deletions
41
.SRCINFO
Normal file
41
.SRCINFO
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
pkgbase = orca-slicer-git
|
||||||
|
pkgdesc = G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
|
||||||
|
pkgver = 2.2.0_dev.c179a57725
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/SoftFever/OrcaSlicer
|
||||||
|
arch = x86_64
|
||||||
|
license = AGPL-3.0-only
|
||||||
|
makedepends = cmake
|
||||||
|
makedepends = extra-cmake-modules
|
||||||
|
makedepends = git
|
||||||
|
makedepends = m4
|
||||||
|
makedepends = ninja
|
||||||
|
makedepends = pkgconf
|
||||||
|
makedepends = wayland-protocols
|
||||||
|
makedepends = glew
|
||||||
|
depends = cairo
|
||||||
|
depends = dbus
|
||||||
|
depends = expat
|
||||||
|
depends = fontconfig
|
||||||
|
depends = gcc-libs
|
||||||
|
depends = glib2
|
||||||
|
depends = glibc
|
||||||
|
depends = gtk3
|
||||||
|
depends = gdk-pixbuf2
|
||||||
|
depends = gstreamer
|
||||||
|
depends = gst-plugins-bad-libs
|
||||||
|
depends = hicolor-icon-theme
|
||||||
|
depends = libglvnd
|
||||||
|
depends = libjpeg-turbo
|
||||||
|
depends = libspnav
|
||||||
|
depends = libx11
|
||||||
|
depends = pango
|
||||||
|
depends = python
|
||||||
|
depends = wayland
|
||||||
|
depends = webkit2gtk-4.1
|
||||||
|
depends = zlib
|
||||||
|
provides = orca-slicer
|
||||||
|
source = orca-slicer-git::git+https://github.com/SoftFever/OrcaSlicer.git
|
||||||
|
b2sums = SKIP
|
||||||
|
|
||||||
|
pkgname = orca-slicer-git
|
61
PKGBUILD
Normal file
61
PKGBUILD
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
pkgname=orca-slicer-git
|
||||||
|
pkgver=2.2.0_dev.c179a57725
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/SoftFever/OrcaSlicer"
|
||||||
|
license=('AGPL-3.0-only')
|
||||||
|
depends=('cairo' 'dbus' 'expat' 'fontconfig' 'gcc-libs' 'glib2' 'glibc' 'gtk3' 'gdk-pixbuf2' 'gstreamer' 'gst-plugins-bad-libs' 'hicolor-icon-theme' 'libglvnd' 'libjpeg-turbo' 'libspnav' 'libx11' 'pango' 'python' 'wayland' 'webkit2gtk-4.1' 'zlib')
|
||||||
|
makedepends=('cmake' 'extra-cmake-modules' 'git' 'm4' 'ninja' 'pkgconf' 'wayland-protocols' 'glew')
|
||||||
|
provides=("orca-slicer")
|
||||||
|
source=("$pkgname::git+https://github.com/SoftFever/OrcaSlicer.git")
|
||||||
|
b2sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd $pkgname
|
||||||
|
printf "%s_dev.%s" "$(sed -n 's/.*SoftFever_VERSION "\([^"]*\)".*/\1/p' version.inc | sed 's/-dev//')" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $srcdir/$pkgname
|
||||||
|
|
||||||
|
# Remove the <T> in the Constructor Definition
|
||||||
|
sed -i 's/explicit Point<T>(/explicit Point(/' src/clipper2/Clipper2Lib/include/clipper2/clipper.core.h
|
||||||
|
# Change installation path for resources
|
||||||
|
sed -i 's/${CMAKE_INSTALL_FULL_DATAROOTDIR}/\/usr\/share\//' CMakeLists.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $srcdir/$pkgname
|
||||||
|
mkdir -p deps/build/release
|
||||||
|
|
||||||
|
cmake \
|
||||||
|
-G Ninja \
|
||||||
|
-S deps \
|
||||||
|
-B deps/build \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DDEP_WX_GTK3=ON
|
||||||
|
ninja -C deps/build
|
||||||
|
|
||||||
|
cmake \
|
||||||
|
-G Ninja \
|
||||||
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS -flto" \
|
||||||
|
-S . \
|
||||||
|
-B build \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_PREFIX_PATH=$srcdir/$pkgname/deps/build/destdir/usr/local \
|
||||||
|
-DSLIC3R_STATIC=1 \
|
||||||
|
-DORCA_TOOLS=1 \
|
||||||
|
-DSLIC3R_FHS=1 \
|
||||||
|
-DSLIC3R_GTK=3
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $srcdir/$pkgname
|
||||||
|
DESTDIR=$pkgdir ninja -C build install
|
||||||
|
install -Dm644 doc/*.md -t $pkgdir/usr/share/doc/OrcaSlicer/
|
||||||
|
install -Dm644 $pkgdir/usr/LICENSE.txt $pkgdir/usr/share/licenses/OrcaSlicer/LICENSE
|
||||||
|
rm -rf $pkgdir/usr/LICENSE.txt
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue