aboutsummaryrefslogtreecommitdiffstats
path: root/lightcraft-bin
diff options
context:
space:
mode:
Diffstat (limited to 'lightcraft-bin')
-rw-r--r--lightcraft-bin/README18
-rw-r--r--lightcraft-bin/doinst.sh13
-rw-r--r--lightcraft-bin/lightcraft-bin.SlackBuild81
-rw-r--r--lightcraft-bin/lightcraft-bin.info10
-rw-r--r--lightcraft-bin/slack-desc19
5 files changed, 141 insertions, 0 deletions
diff --git a/lightcraft-bin/README b/lightcraft-bin/README
new file mode 100644
index 0000000..d77d450
--- /dev/null
+++ b/lightcraft-bin/README
@@ -0,0 +1,18 @@
+LightCraft is an open-source, non-destructive photo library and raw
+developer written in pure Rust: a clean-room reimplementation of the
+Lightroom workflow. It edits through a scene-referred, wide-gamut,
+32-bit float pipeline (GPU-accelerated via wgpu, with a CPU fallback),
+decodes its own raw formats and keeps a local, account-free catalog.
+The package also ships lightcraft-cli, the headless command-line and
+MCP server.
+
+This package repacks the upstream prebuilt x86_64 binary from the
+release tarball. It needs glibc 2.35 or newer, so it targets Slackware
+-current rather than 15.0.
+
+Window-system and GPU libraries (X11/xcb, libxkbcommon, wayland, Vulkan
+or EGL) are loaded at runtime and are all part of a full Slackware
+install. On Wayland, XWayland is used by default; set
+LIGHTCRAFT_WAYLAND=1 for native Wayland.
+
+Upstream marks LightCraft as alpha and moving fast.
diff --git a/lightcraft-bin/doinst.sh b/lightcraft-bin/doinst.sh
new file mode 100644
index 0000000..aea0f89
--- /dev/null
+++ b/lightcraft-bin/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/lightcraft-bin/lightcraft-bin.SlackBuild b/lightcraft-bin/lightcraft-bin.SlackBuild
new file mode 100644
index 0000000..229fee5
--- /dev/null
+++ b/lightcraft-bin/lightcraft-bin.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/bash
+
+# Slackware build script for lightcraft
+
+# Copyright 2026 danix <danix@danix.xyz>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=lightcraft-bin
+SRCNAM=lightcraft
+VERSION=${VERSION:-0.7.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=${ARCH:-x86_64}
+
+# Only x86_64 is supported (pre-built binary, needs a recent glibc)
+if [ "$ARCH" != "x86_64" ]; then
+ echo "ERROR: $PRGNAM is only available for x86_64."
+ exit 1
+fi
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION-linux-$ARCH
+tar xvf $CWD/$SRCNAM-$VERSION-linux-$ARCH.tar.gz --no-same-owner
+cd $SRCNAM-$VERSION-linux-$ARCH
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Upstream ships an FHS tree (bin/, share/) with already-stripped binaries.
+mkdir -p $PKG/usr
+cp -a bin share $PKG/usr/
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc
+mv $PKG/usr/share/doc/$SRCNAM $PKGDOC
+rmdir $PKG/usr/share/doc
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/lightcraft-bin/lightcraft-bin.info b/lightcraft-bin/lightcraft-bin.info
new file mode 100644
index 0000000..4700a24
--- /dev/null
+++ b/lightcraft-bin/lightcraft-bin.info
@@ -0,0 +1,10 @@
+PRGNAM="lightcraft-bin"
+VERSION="0.7.1"
+HOMEPAGE="https://getartcraft.com/apps/lightcraft"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/storytold/lightcraft/releases/download/v0.7.1/lightcraft-0.7.1-linux-x86_64.tar.gz"
+MD5SUM_x86_64="0ed32af1cb6dadca3512de61f5cedca8"
+REQUIRES=""
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"
diff --git a/lightcraft-bin/slack-desc b/lightcraft-bin/slack-desc
new file mode 100644
index 0000000..8c30065
--- /dev/null
+++ b/lightcraft-bin/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+lightcraft-bin: lightcraft-bin (non-destructive raw photo library)
+lightcraft-bin:
+lightcraft-bin: LightCraft is a pure-Rust, non-destructive photo library and
+lightcraft-bin: raw developer (a clean-room Lightroom reimplementation). It
+lightcraft-bin: edits in a scene-referred 32-bit float pipeline, accelerated
+lightcraft-bin: on the GPU via wgpu with a CPU fallback, and keeps a local,
+lightcraft-bin: account-free catalog. It includes lightcraft-cli, the
+lightcraft-bin: headless CLI and MCP server.
+lightcraft-bin:
+lightcraft-bin: Homepage: https://getartcraft.com/apps/lightcraft
+lightcraft-bin: