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/2] 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 " +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/2] 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