Github messages for voidlinux
 help / color / mirror / Atom feed
From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: LibreSprite-1.0
Date: Sun, 18 Feb 2024 14:18:26 +0100	[thread overview]
Message-ID: <20240218131826.8C6CE29838@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48030@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

There is an updated pull request by MIvanchev against master on the void-packages repository

https://github.com/MIvanchev/void-packages libresprite
https://github.com/void-linux/void-packages/pull/48030

New package: LibreSprite-1.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)


A patch file from https://github.com/void-linux/void-packages/pull/48030.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libresprite-48030.patch --]
[-- Type: text/x-diff, Size: 4731 bytes --]

From 28b60023c52020cf29ddf913f2ded3c379d5b957 Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Tue, 2 Jan 2024 16:47:39 +0100
Subject: [PATCH] New package: LibreSprite-1.0

---
 srcpkgs/LibreSprite/files/cstdint.patch | 24 ++++++++++
 srcpkgs/LibreSprite/template            | 61 +++++++++++++++++++++++++
 2 files changed, 85 insertions(+)
 create mode 100644 srcpkgs/LibreSprite/files/cstdint.patch
 create mode 100644 srcpkgs/LibreSprite/template

diff --git a/srcpkgs/LibreSprite/files/cstdint.patch b/srcpkgs/LibreSprite/files/cstdint.patch
new file mode 100644
index 0000000000000..defc2eec54eda
--- /dev/null
+++ b/srcpkgs/LibreSprite/files/cstdint.patch
@@ -0,0 +1,24 @@
+diff --git a/src/base/convert_to.h b/src/base/convert_to.h
+index ecd2fe88c..7485958d7 100644
+--- a/src/base/convert_to.h
++++ b/src/base/convert_to.h
+@@ -8,6 +8,7 @@
+ 
+ #include "base/base.h"
+ #include <string>
++#include <cstdint>
+ 
+ namespace base {
+ 
+diff --git a/src/base/sha1.h b/src/base/sha1.h
+index 435faae24..1f0a5b873 100644
+--- a/src/base/sha1.h
++++ b/src/base/sha1.h
+@@ -8,6 +8,7 @@
+ 
+ #include <vector>
+ #include <string>
++#include <cstdint>
+ 
+ extern "C" struct SHA1Context;
+ 
diff --git a/srcpkgs/LibreSprite/template b/srcpkgs/LibreSprite/template
new file mode 100644
index 0000000000000..b130c41f1222a
--- /dev/null
+++ b/srcpkgs/LibreSprite/template
@@ -0,0 +1,61 @@
+# 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 <contact@ivanchev.net>"
+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}.tar.gz>clip.tar.gz
+https://github.com/aseprite/flic/archive/${_fliccommit}.tar.gz>flic.tar.gz
+https://github.com/dacap/observable/archive/${_observablecommit}.tar.gz>observable.tar.gz
+https://github.com/aseprite/undo/archive/${_undocommit}.tar.gz>undo.tar.gz
+https://github.com/aseprite/simpleini/archive/${_simpleinicommit}.tar.gz>simpleini.tar.gz
+https://github.com/LibreSprite/duktape/archive/${_duktapecommit}.tar.gz>duktape.tar.gz"
+checksum="7f1fc58ba3c1c7dae384a2e893d0b9d821c6213a5121f263d0964deabd07708e
+ 9870ac989398c09586edbb8451acdab8d150edc34b089848bab25f96d924c53b
+ e66ab8d28c630a80a2be2baf260f87481ca7b0d35101e74b3ef131f47989d1a9
+ eda63df220ada5cc9f346aa1e0b042f45130933ee06cf6f813792dd57d6041e1
+ 98cedb5dd9469f1ac1b08f17cfbfd3e094ecf7e462707db1a6bc0ab2fcdf45d1
+ ac06aaef6fb70412270eb9796af538f8486262b864a8c52f34da36571745831d
+ 711a5cb7e3d663d7673d635a11a3b38fe67cf63b1c9f7eb406ebd107a25b7004"
+skip_extraction="clip flic observable undo simpleini duktape"
+build_wrksrc=${pkgname}-${version}
+
+post_extract() {
+	vsrcextract -C ${build_wrksrc}/src/clip clip.tar.gz
+	vsrcextract -C ${build_wrksrc}/src/flic flic.tar.gz
+	vsrcextract -C ${build_wrksrc}/src/observable observable.tar.gz
+	vsrcextract -C ${build_wrksrc}/src/undo undo.tar.gz
+	vsrcextract -C ${build_wrksrc}/third_party/simpleini simpleini.tar.gz
+	vsrcextract -C ${build_wrksrc}/third_party/duktape duktape.tar.gz
+}
+
+post_patch() {
+	patch -Np1 -i "${FILESDIR}/cstdint.patch"
+
+        # When cross-compiling, the "gen" tool cannot be executed without emulation because
+	# it'll be compiled for the target architecture. Instead, we change the absolute path
+	# to it to the target "gen" so the add_custom_command would apply the
+        # CROSSCOMPILING_EMULATOR property automatically. See:
+        # https://cmake.org/cmake/help/latest/command/add_custom_command.html and
+        # https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html
+        # for more information.
+
+	vsed -i src/app/CMakeLists.txt -e 's|${CMAKE_BINARY_DIR}/bin/gen|gen|g'
+}

  parent reply	other threads:[~2024-02-18 13:18 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-02 15:52 [PR PATCH] " MIvanchev
2024-01-02 15:54 ` MIvanchev
2024-01-02 15:55 ` MIvanchev
2024-01-02 15:56 ` [PR PATCH] [Updated] " MIvanchev
2024-01-02 16:04 ` MIvanchev
2024-01-02 16:10 ` MIvanchev
2024-01-02 21:22 ` MIvanchev
2024-01-02 21:23 ` MIvanchev
2024-01-02 21:45 ` MIvanchev
2024-01-02 21:46 ` MIvanchev
2024-01-02 21:48 ` MIvanchev
2024-01-02 21:58 ` MIvanchev
2024-01-02 22:06 ` MIvanchev
2024-01-02 22:09 ` MIvanchev
2024-01-02 22:25 ` MIvanchev
2024-01-02 22:26 ` MIvanchev
2024-01-02 22:34 ` MIvanchev
2024-01-03  2:01 ` chrysos349
2024-01-03  8:22 ` [PR PATCH] [Updated] " MIvanchev
2024-01-03 13:40 ` [PR REVIEW] " sgn
2024-01-03 13:40 ` [PR PATCH] [Updated] " sgn
2024-01-03 15:02 ` MIvanchev
2024-01-03 15:08 ` MIvanchev
2024-01-03 15:12 ` [PR PATCH] [Updated] " MIvanchev
2024-02-18 12:07 ` sug0
2024-02-18 12:41 ` [PR PATCH] [Updated] " MIvanchev
2024-02-18 12:45 ` MIvanchev
2024-02-18 12:49 ` MIvanchev
2024-02-18 12:52 ` MIvanchev
2024-02-18 13:01 ` MIvanchev
2024-02-18 13:08 ` MIvanchev
2024-02-18 13:13 ` MIvanchev
2024-02-18 13:18 ` MIvanchev [this message]
2024-02-18 13:24 ` MIvanchev
2024-02-18 13:32 ` MIvanchev
2024-02-18 13:32 ` MIvanchev
  -- strict thread matches above, loose matches on Subject: below --
2023-08-06 19:04 [PR PATCH] New package: libresprite-1.0 moheb2000
2023-08-07 17:16 ` [PR PATCH] [Updated] " moheb2000
2023-08-09 13:03 ` moheb2000
2021-12-22  1:54 [PR PATCH] New package: LibreSprite-1.0 notthewave
2021-12-22  1:56 ` [PR PATCH] [Updated] " notthewave
2021-12-27 16:16 ` notthewave
2021-12-27 16:39 ` notthewave
2021-12-27 16:47 ` notthewave

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240218131826.8C6CE29838@inbox.vuxu.org \
    --to=mivanchev@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).