* [PR PATCH] New package: pencil-3.1.0
@ 2022-02-14 7:17 Jlll1
2022-06-24 2:16 ` github-actions
2022-07-09 2:13 ` [PR PATCH] [Closed]: " github-actions
0 siblings, 2 replies; 3+ messages in thread
From: Jlll1 @ 2022-02-14 7:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
There is a new pull request by Jlll1 against master on the void-packages repository
https://github.com/Jlll1/void-packages add-pencil
https://github.com/void-linux/void-packages/pull/35606
New package: pencil-3.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
A patch file from https://github.com/void-linux/void-packages/pull/35606.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-add-pencil-35606.patch --]
[-- Type: text/x-diff, Size: 4457 bytes --]
From 09a7aa0ac584fcee075a688c26ef0660341c447a Mon Sep 17 00:00:00 2001
From: Jlll1 <arghantentua@tutanota.com>
Date: Sun, 13 Feb 2022 20:55:13 +0100
Subject: [PATCH] New package: pencil-3.1.0
---
srcpkgs/pencil/files/pencil.desktop | 6 ++++
.../remove-deb-and-rpm-build-targets.patch | 25 +++++++++++++
...remove-win-settings-from-packagejson.patch | 31 ++++++++++++++++
srcpkgs/pencil/template | 36 +++++++++++++++++++
4 files changed, 98 insertions(+)
create mode 100644 srcpkgs/pencil/files/pencil.desktop
create mode 100644 srcpkgs/pencil/patches/remove-deb-and-rpm-build-targets.patch
create mode 100644 srcpkgs/pencil/patches/remove-win-settings-from-packagejson.patch
create mode 100644 srcpkgs/pencil/template
diff --git a/srcpkgs/pencil/files/pencil.desktop b/srcpkgs/pencil/files/pencil.desktop
new file mode 100644
index 000000000000..06b5dfd3737a
--- /dev/null
+++ b/srcpkgs/pencil/files/pencil.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=Pencil
+Comment=An open-source GUI prototyping tool that is available for ALL platforms.
+Exec=pencil
+Icon=pencil
+Categories=Office;Graphics
diff --git a/srcpkgs/pencil/patches/remove-deb-and-rpm-build-targets.patch b/srcpkgs/pencil/patches/remove-deb-and-rpm-build-targets.patch
new file mode 100644
index 000000000000..2c0ef82b8909
--- /dev/null
+++ b/srcpkgs/pencil/patches/remove-deb-and-rpm-build-targets.patch
@@ -0,0 +1,25 @@
+From 8119208cca2473dc9131e49cf1cd7d82b2cbfa29 Mon Sep 17 00:00:00 2001
+From: Jlll1 <arghantentua@tutanota.com>
+Date: Sun, 13 Feb 2022 20:10:42 +0100
+Subject: [PATCH] Remove deb and rpm targets
+
+---
+ package.json | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/package.json b/package.json
+index db31c3b..e7a7ec6 100644
+--- a/package.json
++++ b/package.json
+@@ -34,8 +34,6 @@
+ "maintainer": "Nguyen Tien Dzung <ngtdungnt@gmail.com>",
+ "vendor": "Evolus",
+ "target": [
+- "deb",
+- "rpm",
+ "tar.gz"
+ ],
+ "depends": [],
+--
+2.35.1
+
diff --git a/srcpkgs/pencil/patches/remove-win-settings-from-packagejson.patch b/srcpkgs/pencil/patches/remove-win-settings-from-packagejson.patch
new file mode 100644
index 000000000000..285ca02c7a55
--- /dev/null
+++ b/srcpkgs/pencil/patches/remove-win-settings-from-packagejson.patch
@@ -0,0 +1,31 @@
+From 4228bbe798385e482624376a391015a95da717c4 Mon Sep 17 00:00:00 2001
+From: Jlll1 <arghantentua@tutanota.com>
+Date: Sun, 13 Feb 2022 20:06:40 +0100
+Subject: [PATCH] Remove win from package.json
+
+---
+ package.json | 8 --------
+ 1 file changed, 8 deletions(-)
+
+diff --git a/package.json b/package.json
+index db31c3b..b4c0606 100644
+--- a/package.json
++++ b/package.json
+@@ -42,14 +42,6 @@
+ "category": "Graphics",
+ "packageCategory": "graphics"
+ },
+- "win": {
+- "authors": "Evolus",
+- "owners": "Evolus",
+- "description": "An open-source GUI prototyping tool that is available for ALL platforms.",
+- "copyright": "Copyright © 2008-2016 Evolus. All rights reserved.",
+- "iconUrl": "https://raw.githubusercontent.com/evolus/pencil/master/build/icon.ico",
+- "target": "nsis"
+- },
+ "nsis": {
+ "oneClick": false,
+ "perMachine": true,
+--
+2.35.1
+
diff --git a/srcpkgs/pencil/template b/srcpkgs/pencil/template
new file mode 100644
index 000000000000..012e1d2cb9b9
--- /dev/null
+++ b/srcpkgs/pencil/template
@@ -0,0 +1,36 @@
+# Template file for 'pencil'
+pkgname=pencil
+version=3.1.0
+revision=1
+archs="x86_64"
+hostmakedepends="nodejs yarn"
+short_desc="Open-source GUI prototyping tool"
+maintainer="Jlll1 <arghantentua@tutanota.com>"
+license="GPL-2.0-only"
+homepage="https://pencil.evolus.vn/"
+distfiles="https://github.com/evolus/pencil/archive/v${version}.tar.gz"
+checksum=e14eddd0aad28919cfdf8d47b726f9c75a3a0d2042605e8da96309c23a995f44
+
+post_extract() {
+ yarn install --ignore-engines
+}
+
+do_build() {
+ ./node_modules/.bin/build --linux --x64
+}
+
+do_install() {
+ vmkdir usr/lib/pencil
+ vcopy dist/linux-unpacked/* usr/lib/pencil
+
+ vmkdir usr/bin
+ ln -s /usr/lib/pencil/pencil ${DESTDIR}/usr/bin/
+
+ vmkdir usr/share/applications
+ vinstall ${FILESDIR}/pencil.desktop 644 usr/share/applications/
+
+ vmkdir usr/share/icons/hicolor
+ for size in 16 24 32 48 64 96 128 256; do
+ vinstall build/icons/${size}x${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/pencil.png
+ done
+}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-09 2:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 7:17 [PR PATCH] New package: pencil-3.1.0 Jlll1
2022-06-24 2:16 ` github-actions
2022-07-09 2:13 ` [PR PATCH] [Closed]: " github-actions
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).