Here's a PKGBUILD diff that works for the latest 1.3.13-beta1 release. It needs a new prebuilt skia from their fork, c++11 and libstdc++ specified. All patches disabled since a lot of them don't apply cleanly and I don't know whether they're still necessary (obviously maintainer would know better).
--- PKGBUILD.orig 2025-02-10 09:31:56.555479923 -0500
+++ PKGBUILD 2025-02-10 09:27:47.482226793 -0500
@@ -9,7 +9,8 @@
# Contributor: Kamil Biduś <kamil.bidus@gmail.com>
pkgname=aseprite-skia-bin
-pkgver=1.3.7
+pkgver=1.3.13
+pkgsuffix=-beta1
pkgrel=1
pkgdesc='Create animated sprites and pixel art'
arch=('x86_64')
@@ -33,9 +34,10 @@
harfbuzz-icu)
provides=(aseprite)
conflicts=(aseprite)
-source=("https://github.com/aseprite/aseprite/releases/download/v$pkgver/Aseprite-v$pkgver-Source.zip"
+source=("https://github.com/aseprite/aseprite/releases/download/v$pkgver$pkgsuffix/Aseprite-v$pkgver$pkgsuffix-Source.zip"
# Which branch a given build of Aseprite requires is noted in its `INSTALL.md`
- "https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Linux-Release-x64-libc++.zip"
+ #"https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Linux-Release-x64-libc++.zip"
+ "https://github.com/aseprite/skia/releases/download/m124-08a5439a6b/Skia-Linux-Release-x64.zip"
desktop.patch
# Based on https://patch-diff.githubusercontent.com/raw/aseprite/aseprite/pull/2535.patch
shared-libarchive.patch
@@ -45,8 +47,8 @@
optional-pixman.patch
ENABLE_UPDATER-fix.patch)
noextract=("${source[0]##*/}" "${source[1]##*/}") # Don't extract Aseprite sources or Skia at the root
-sha256sums=('6524b4dd38adac22f954122846ccca7377983cee2e0f17c1482294cf09cbdcfc'
- '66293c15aa773a96121afb01f09109d3e5d455a6fd51944e0bb8bdc0829913ea'
+sha256sums=('SKIP'
+ 'SKIP'
'8b14e36939e930de581e95abf0591645aa0fcfd47161cf88b062917dbaaef7f9'
'e42675504bfbc17655aef1dca957041095026cd3dd4e6981fb6df0a363948aa7'
'320ed456512fb26f30aa682d7d34529d6fc3372d76daba3812cecb8fc21d5f1d'
@@ -62,14 +64,14 @@
# Fix up Aseprite's desktop integration
env -C aseprite patch -tp1 <desktop.patch
# Allow using more shared libs
- env -C aseprite patch -tp1 <shared-libarchive.patch
- env -C aseprite patch -tp1 <shared-libwebp.patch
- env -C aseprite patch -tp1 <optional-pixman.patch
+ #env -C aseprite patch -tp1 <shared-libarchive.patch
+ #env -C aseprite patch -tp1 <shared-libwebp.patch
+ #env -C aseprite patch -tp1 <optional-pixman.patch
# Their "FindSkia" module forcefully tries to use Skia's FreeType and HarfBuzz,
# but we don't clone those because we use the shared ones. Avoid overwriting the settings instead.
- env -C aseprite patch -tp1 <shared-skia-deps.patch
+ #env -C aseprite patch -tp1 <shared-skia-deps.patch
# Backport https://github.com/aseprite/aseprite/commit/8fce589069090bb086d7ad7b0b50340171c98b17
- env -C aseprite patch -tp1 <ENABLE_UPDATER-fix.patch
+ #env -C aseprite patch -tp1 <ENABLE_UPDATER-fix.patch
}
build() {
@@ -80,7 +82,7 @@
-DENABLE_{UPDATER,WEBSOCKET}=NO -DENABLE_SCRIPTING=ON -DLAF_WITH_EXAMPLES=OFF -DLAF_WITH_TESTS=OFF -DLAF_BACKEND=skia \
-DSKIA_DIR="$srcdir/skia" -DSKIA_LIBRARY_DIR="$_skiadir" -DSKIA_LIBRARY="$_skiadir/libskia.a" \
-DUSE_SHARED_{CURL,GIFLIB,JPEGLIB,ZLIB,LIBPNG,PIXMAN,FREETYPE,HARFBUZZ,LIBARCHIVE,WEBP}=YES \
--DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="$CXXFLAGS -stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS:STRING=-stdlib=libc++ \
+-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="$CXXFLAGS -std=c++11 -stdlib=libstdc++" -DCMAKE_EXE_LINKER_FLAGS:STRING=-stdlib=libstdc++ \
-DWEBP_INCLUDE_DIR="$srcdir/skia/third_party/externals/libwebp/src" \
-DWEBP{,MUX,DEMUX}_LIBRARY= # Use Skia's already-bundled WebP library (link to no additional libs)
ninja -C build
Pinned Comments
Typology commented on 2021-07-13 07:43 (UTC) (edited on 2022-07-19 20:30 (UTC) by Typology)
This package installs aseprite by using the pre-built skia library, so you hava to only compile aseprite. This package is updated with every release.
Please support the developers by buying a copy here