aboutsummaryrefslogtreecommitdiffstats
path: root/photocraft-bin
diff options
context:
space:
mode:
Diffstat (limited to 'photocraft-bin')
-rw-r--r--photocraft-bin/README15
-rw-r--r--photocraft-bin/doinst.sh13
-rw-r--r--photocraft-bin/photocraft-bin.SlackBuild81
-rw-r--r--photocraft-bin/photocraft-bin.info10
-rw-r--r--photocraft-bin/slack-desc19
5 files changed, 138 insertions, 0 deletions
diff --git a/photocraft-bin/README b/photocraft-bin/README
new file mode 100644
index 0000000..7d0da6f
--- /dev/null
+++ b/photocraft-bin/README
@@ -0,0 +1,15 @@
+PhotoCraft is an open-source, native image editor written in Rust,
+with familiar professional tools: layers, masks, adjustment layers,
+layer styles, type and brushes. It opens and saves layered PSD/PSB
+files, works on 8/16/32-bit documents and composites on the GPU via
+wgpu. The package also ships photocraft-cli, a headless converter and
+command runner.
+
+This package repacks the upstream prebuilt x86_64 binary. It needs
+glibc 2.35 or newer, so it runs on Slackware -current, not 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.
+
+Upstream marks PhotoCraft as early alpha.
diff --git a/photocraft-bin/doinst.sh b/photocraft-bin/doinst.sh
new file mode 100644
index 0000000..aea0f89
--- /dev/null
+++ b/photocraft-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/photocraft-bin/photocraft-bin.SlackBuild b/photocraft-bin/photocraft-bin.SlackBuild
new file mode 100644
index 0000000..70b5c5b
--- /dev/null
+++ b/photocraft-bin/photocraft-bin.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/bash
+
+# Slackware build script for photocraft
+
+# 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=photocraft-bin
+SRCNAM=photocraft
+VERSION=${VERSION:-0.8.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=${ARCH:-x86_64}
+
+# Only x86_64 is supported (pre-built binary, needs glibc >= 2.35)
+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/photocraft-bin/photocraft-bin.info b/photocraft-bin/photocraft-bin.info
new file mode 100644
index 0000000..f694e0b
--- /dev/null
+++ b/photocraft-bin/photocraft-bin.info
@@ -0,0 +1,10 @@
+PRGNAM="photocraft-bin"
+VERSION="0.8.2"
+HOMEPAGE="https://getartcraft.com/apps/photocraft"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/storytold/photocraft/releases/download/v0.8.2/photocraft-0.8.2-linux-x86_64.tar.gz"
+MD5SUM_x86_64="3f0d0c6cc7fec1053187ed1ea20a4d36"
+REQUIRES=""
+MAINTAINER="danix"
+EMAIL="danix@danix.xyz"
diff --git a/photocraft-bin/slack-desc b/photocraft-bin/slack-desc
new file mode 100644
index 0000000..2792007
--- /dev/null
+++ b/photocraft-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------------------------------------------------------|
+photocraft-bin: photocraft-bin (native image editor, written in Rust)
+photocraft-bin:
+photocraft-bin: PhotoCraft is an open-source image editor with layers, masks,
+photocraft-bin: adjustment layers, layer styles, type and brushes. It opens and
+photocraft-bin: saves layered PSD/PSB files, handles 8/16/32-bit documents and
+photocraft-bin: composites on the GPU via wgpu (Vulkan or EGL).
+photocraft-bin: Includes photocraft-cli, a headless converter and command runner.
+photocraft-bin:
+photocraft-bin: This package repacks the upstream x86_64 binary release.
+photocraft-bin:
+photocraft-bin: Homepage: https://getartcraft.com/apps/photocraft