From f2ac9210a1e98de0aa9f3467bf55b10c26770a6d Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Tue, 2 Jan 2024 16:47:39 +0100 Subject: [PATCH] New package: LibreSprite-1.0 --- srcpkgs/LibreSprite/template | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 srcpkgs/LibreSprite/template diff --git a/srcpkgs/LibreSprite/template b/srcpkgs/LibreSprite/template new file mode 100644 index 0000000000000..bc06b58bacb55 --- /dev/null +++ b/srcpkgs/LibreSprite/template @@ -0,0 +1,51 @@ +# Template file for 'LibreSprite' +pkgname=LibreSprite +_clipcommit=8175b5b941e93313d093dba7c68a905773e9e76b +_fliccommit=876ef60df5fec606f8eb0638ee893e4967db4673 +# TODO: Using older commit here due to incompatiblity with the current version +# Check upon every new version! +_observablecommit=f5e79fefd465ad722f1ab98705d16e8af8b6a5df +_undocommit=c868a0238973f04564253133c1cd3689f9aa3913 +_simpleinicommit=9fa7622f41e36105a4c767a7765bb24afec4d6be +_duktapecommit=6f715553e706b61e611aa4ae8e6fe90626800dae +version=1.0 +revision=1 +build_style=cmake +build_helper="qemu" +configure_args="-DWITH_DESKTOP_INTEGRATION=ON -DCLIP_TESTS=OFF" +hostmakedepends="pkg-config git" +makedepends="libpng-devel pixman-devel libcurl-devel SDL2_image-devel tinyxml-devel zlib-devel SDL2-devel freetype-devel lua54-devel giflib-devel libjpeg-turbo-devel gtest-devel" +depends="desktop-file-utils hicolor-icon-theme" +short_desc="Animated sprite editor & pixel art tool -- GPL2 Aseprite fork" +maintainer="Mihail Ivanchev " +license="GPL-2.0-only" +homepage="https://libresprite.github.io/" +distfiles="https://github.com/LibreSprite/LibreSprite/archive/refs/tags/v${version}.tar.gz +https://github.com/aseprite/clip/archive/${_clipcommit}.zip +https://github.com/aseprite/flic/archive/${_fliccommit}.zip +https://github.com/dacap/observable/archive/${_observablecommit}.zip +https://github.com/aseprite/undo/archive/${_undocommit}.zip +https://github.com/aseprite/simpleini/archive/${_simpleinicommit}.zip +https://github.com/LibreSprite/duktape/archive/${_duktapecommit}.zip" +checksum="7f1fc58ba3c1c7dae384a2e893d0b9d821c6213a5121f263d0964deabd07708e + 5d07e4e2102dc3bd073aab2f6e217981f8ccbf3b944a31768ac774dd652f12a5 + 05861274a408e4c75afba5096e9c6dc0f8e8cde54ea2c005c34ce47e1485d468 + c5e62c9dabee7b7c2448eb0f612ddd3c26a0007bb32095ca294d77f39629e409 + bd151d5e0482b704eda33f91dc74c2de5c6339522a2a837ab29100aef796c552 + d19e2498aa8d55a616e0621c0d59343f59a80e6789edc144915271b874dd887f + e736c47b942028680654fb55633ec7efda617324a5f032be44c05f5060a7a796" + +post_extract() { + mv -T ${wrksrc}/clip-${_clipcommit} ${wrksrc}/${pkgname}-${version}/src/clip + mv -T ${wrksrc}/flic-${_fliccommit} ${wrksrc}/${pkgname}-${version}/src/flic + mv -T ${wrksrc}/observable-${_observablecommit} ${wrksrc}/${pkgname}-${version}/src/observable + mv -T ${wrksrc}/undo-${_undocommit} ${wrksrc}/${pkgname}-${version}/src/undo + mv -T ${wrksrc}/simpleini-${_simpleinicommit} ${wrksrc}/${pkgname}-${version}/third_party/simpleini + mv -T ${wrksrc}/duktape-${_duktapecommit} ${wrksrc}/${pkgname}-${version}/third_party/duktape + mv ${wrksrc}/${pkgname}-${version}/{*,.[!.]*} ${wrksrc}/ + rmdir ${wrksrc}/${pkgname}-${version} +} + +post_patch() { + vsed -i src/app/CMakeLists.txt -e 's|${CMAKE_BINARY_DIR}/bin/gen|${CMAKE_CROSSCOMPILING_EMULATOR} &|g' +}