From: cat-marin <cat-marin@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Add Write from Stylus Labs
Date: Mon, 31 Aug 2020 05:28:39 +0200 [thread overview]
Message-ID: <20200831032839.QuwrWbOdtswAVpadZ7mxSFwJqR_VtZBtRHnb9IDUsro@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24555@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
There is an updated pull request by cat-marin against master on the void-packages repository
https://github.com/cat-marin/void-packages master
https://github.com/void-linux/void-packages/pull/24555
Add Write from Stylus Labs
Starting college and thought it might be easier to set up new systems with Write in void-packages.
A patch file from https://github.com/void-linux/void-packages/pull/24555.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-24555.patch --]
[-- Type: text/x-diff, Size: 3475 bytes --]
From ea84bca1814152542af21904c7e14a36be751d08 Mon Sep 17 00:00:00 2001
From: cat <25059103+cat-marin@users.noreply.github.com>
Date: Sun, 30 Aug 2020 15:56:35 -0400
Subject: [PATCH 1/3] Add Write from Stylus Labs
---
srcpkgs/write-styluslabs/template | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 srcpkgs/write-styluslabs/template
diff --git a/srcpkgs/write-styluslabs/template b/srcpkgs/write-styluslabs/template
new file mode 100644
index 00000000000..b4192b94016
--- /dev/null
+++ b/srcpkgs/write-styluslabs/template
@@ -0,0 +1,31 @@
+# Template file for 'Write'
+pkgname=write-styluslabs
+version=3.0.0
+revision=1
+archs="x86_64"
+wrksrc="Write"
+depends="SDL2"
+short_desc="A word processor for handwriting"
+maintainer="Cat Marin <me@jmarin.xyz>"
+license="custom:Proprietary"
+homepage="http://www.styluslabs.com/"
+distfiles="http://www.styluslabs.com/write/write-latest.tar.gz"
+checksum="ec7c8a59f453574aa272d859e4c926eab48122d4965644871bf7cbe3d4703c40"
+repository=nonfree
+restricted=yes
+
+do_install() {
+ local package_location="opt/$pkgname" item
+ vmkdir usr/share/pixmaps
+ vcopy Write144x144.png /usr/share/pixmaps
+ vmkdir usr/share/applications
+ vcopy Write.desktop /usr/share/applications
+ vmkdir ${package_location}
+ chmod +x Write
+ for item in Write DroidSansFallback.ttf Intro.svg Roboto-Regular.ttf; do
+ vcopy "Write" "${package_location}"
+ vcopy "${item}" "${package_location}"
+ done
+ vmkdir usr/bin
+ ln -sfr $DESTDIR/${package_location}/Write $DESTDIR/usr/bin/write-styluslabs
+}
From f3c71f67a8765971cab2b3a58718df1afdfccb9d Mon Sep 17 00:00:00 2001
From: cat <25059103+cat-marin@users.noreply.github.com>
Date: Sun, 30 Aug 2020 17:01:12 -0400
Subject: [PATCH 2/3] Update Write.desktop to reflect proper binary location
---
srcpkgs/write-styluslabs/template | 1 +
1 file changed, 1 insertion(+)
diff --git a/srcpkgs/write-styluslabs/template b/srcpkgs/write-styluslabs/template
index b4192b94016..a40a30f85b6 100644
--- a/srcpkgs/write-styluslabs/template
+++ b/srcpkgs/write-styluslabs/template
@@ -19,6 +19,7 @@ do_install() {
vmkdir usr/share/pixmaps
vcopy Write144x144.png /usr/share/pixmaps
vmkdir usr/share/applications
+ sed -i 's|/opt/Write/Write|/opt/write-stylus/Write|g' Write.desktop
vcopy Write.desktop /usr/share/applications
vmkdir ${package_location}
chmod +x Write
From 747351106d77d2b5176d4ae36d95eaf6db779449 Mon Sep 17 00:00:00 2001
From: cat <cat@wally.lan>
Date: Sun, 30 Aug 2020 23:27:52 -0400
Subject: [PATCH 3/3] Install to /usr instead of /opt
---
srcpkgs/write-styluslabs/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/write-styluslabs/template b/srcpkgs/write-styluslabs/template
index a40a30f85b6..078faee6e11 100644
--- a/srcpkgs/write-styluslabs/template
+++ b/srcpkgs/write-styluslabs/template
@@ -15,11 +15,11 @@ repository=nonfree
restricted=yes
do_install() {
- local package_location="opt/$pkgname" item
+ local package_location="usr/lib/$pkgname" item
vmkdir usr/share/pixmaps
vcopy Write144x144.png /usr/share/pixmaps
vmkdir usr/share/applications
- sed -i 's|/opt/Write/Write|/opt/write-stylus/Write|g' Write.desktop
+ sed -i "s|/opt/Write/Write|/usr/lib/$pkgname/Write|g" Write.desktop
vcopy Write.desktop /usr/share/applications
vmkdir ${package_location}
chmod +x Write
next prev parent reply other threads:[~2020-08-31 3:28 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-30 19:58 [PR PATCH] " cat-marin
2020-08-30 21:01 ` [PR PATCH] [Updated] " cat-marin
2020-08-31 1:34 ` fosslinux
2020-08-31 2:05 ` cat-marin
2020-08-31 2:50 ` fosslinux
2020-08-31 3:28 ` cat-marin [this message]
2020-08-31 3:29 ` cat-marin
2020-08-31 3:58 ` [PR REVIEW] " fosslinux
2020-08-31 3:58 ` fosslinux
2020-08-31 4:23 ` [PR PATCH] [Updated] " cat-marin
2020-08-31 4:26 ` cat-marin
2020-08-31 4:27 ` cat-marin
2020-08-31 4:29 ` [PR PATCH] [Updated] " cat-marin
2020-08-31 6:15 ` fosslinux
2020-08-31 6:23 ` cat-marin
2020-08-31 6:24 ` fosslinux
2020-09-02 17:00 ` ahesford
2020-09-02 23:37 ` ahesford
2020-09-02 23:56 ` [PR REVIEW] " ahesford
2020-09-02 23:56 ` ahesford
2020-09-03 19:49 ` cat-marin
2020-09-03 19:52 ` cat-marin
2020-09-03 20:01 ` ericonr
2020-09-03 20:01 ` ericonr
2020-09-03 20:11 ` cat-marin
2020-09-03 20:12 ` cat-marin
2020-09-03 20:12 ` [PR PATCH] [Closed]: " cat-marin
2020-09-04 0:23 ` [PR REVIEW] " sgn
2020-09-04 0:25 ` sgn
2020-09-04 20:39 ` cat-marin
2020-09-05 0:18 ` fosslinux
2020-09-05 0:59 ` sgn
2020-09-05 4:36 ` cat-marin
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=20200831032839.QuwrWbOdtswAVpadZ7mxSFwJqR_VtZBtRHnb9IDUsro@z \
--to=cat-marin@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).