From 41de149700093424d2c355d9da661cbc6612e072 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Thu, 27 Jul 2023 10:56:17 -0600 Subject: [PATCH 1/3] Add remarkable_templates --- package/remarkable_templates/package | 143 +++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 package/remarkable_templates/package diff --git a/package/remarkable_templates/package b/package/remarkable_templates/package new file mode 100644 index 000000000..7926253d8 --- /dev/null +++ b/package/remarkable_templates/package @@ -0,0 +1,143 @@ +#!/usr/bin/env bash +# Copyright (c) 2023 The Toltec Contributors +# SPDX-License-Identifier: MIT + +pkgnames=( + template-daily-planner + template-weekly-planner + template-journal + template-meeting-notes + template-smart-goals + template-good-time-journal +) +url=https://github.com/msencer/remarkable_templates +pkgver=0.0.0-1 +timestamp=2023-07-27T12:28:59Z +section="templates" +maintainer="Eeems " +license=MIT +installdepends=(templatectl) + +source=("https://github.com/msencer/remarkable_templates/archive/03282d34b905e7e6431132b022b5a9cb3af116a2.zip") +sha256sums=(7a39d53767963f59c8d5b8a7ebda411b60d1256fe1077a3864cc43cd59281e03) + + +template-daily-planner(){ + pkgdesc="Daily Planner template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/daily_planner.png + } + configure() { + templatectl add \ + --name "Daily Planner" \ + --filename "daily_planner" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e9da" + } + preremove() { + templatectl remove --name "Daily Planner" + } +} + +template-weekly-planner(){ + pkgdesc="Weekly Planner template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/weekly_planner.png + } + configure() { + templatectl add \ + --name "Weekly Planner" \ + --filename "weekly_planner" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e997" + } + preremove() { + templatectl remove --name "Weekly Planner" + } +} + +template-journal(){ + pkgdesc="Journal template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/journal.png + } + configure() { + templatectl add \ + --name "Journal" \ + --filename "journal" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e991" + } + preremove() { + templatectl remove --name "Journal" + } +} + +template-meeting-notes(){ + pkgdesc="Meeting Notes template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/meeting_notes.png + } + configure() { + templatectl add \ + --name "1:1 / Meeting Notes" \ + --filename "meeting_notes" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e9d8" + } + preremove() { + templatectl remove --name "1:1 / Meeting Notes" + } +} + +template-smart-goals(){ + pkgdesc="Smart Goals template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/goals.png + } + configure() { + templatectl add \ + --name "Smart Goals" \ + --filename "goals" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e98f" + } + preremove() { + templatectl remove --name "Smart Goals" + } +} + +template-good-time-journal(){ + pkgdesc="Smart Goals template" + package() { + install -D -m 755 \ + -t "$pkgdir"/opt/share/remarkable/templates \ + "$srcdir"/templates/pngs/gt_journal.png + } + configure() { + templatectl add \ + --name "Good Time Journal" \ + --filename "gt_journal" \ + --category "Custom" \ + --category "Life/organize" \ + --icon_code "e9b2" + } + preremove() { + templatectl remove --name "Good Time Journal" + } +} From 106ee532694b0511faa7c61e701e28ce538c90bb Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Thu, 27 Jul 2023 11:07:08 -0600 Subject: [PATCH 2/3] Fix lint --- package/remarkable_templates/package | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package/remarkable_templates/package b/package/remarkable_templates/package index 7926253d8..5d4641fe8 100644 --- a/package/remarkable_templates/package +++ b/package/remarkable_templates/package @@ -22,7 +22,7 @@ source=("https://github.com/msencer/remarkable_templates/archive/03282d34b905e7e sha256sums=(7a39d53767963f59c8d5b8a7ebda411b60d1256fe1077a3864cc43cd59281e03) -template-daily-planner(){ +template-daily-planner() { pkgdesc="Daily Planner template" package() { install -D -m 755 \ @@ -42,7 +42,7 @@ template-daily-planner(){ } } -template-weekly-planner(){ +template-weekly-planner() { pkgdesc="Weekly Planner template" package() { install -D -m 755 \ @@ -62,7 +62,7 @@ template-weekly-planner(){ } } -template-journal(){ +template-journal() { pkgdesc="Journal template" package() { install -D -m 755 \ @@ -82,7 +82,7 @@ template-journal(){ } } -template-meeting-notes(){ +template-meeting-notes() { pkgdesc="Meeting Notes template" package() { install -D -m 755 \ @@ -102,7 +102,7 @@ template-meeting-notes(){ } } -template-smart-goals(){ +template-smart-goals() { pkgdesc="Smart Goals template" package() { install -D -m 755 \ @@ -122,7 +122,7 @@ template-smart-goals(){ } } -template-good-time-journal(){ +template-good-time-journal() { pkgdesc="Smart Goals template" package() { install -D -m 755 \ From bfd769d06e8469d2a09237e45c24877e50ff643d Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Thu, 27 Jul 2023 11:08:55 -0600 Subject: [PATCH 3/3] Remove extra whitespace --- package/remarkable_templates/package | 1 - 1 file changed, 1 deletion(-) diff --git a/package/remarkable_templates/package b/package/remarkable_templates/package index 5d4641fe8..6cae08725 100644 --- a/package/remarkable_templates/package +++ b/package/remarkable_templates/package @@ -21,7 +21,6 @@ installdepends=(templatectl) source=("https://github.com/msencer/remarkable_templates/archive/03282d34b905e7e6431132b022b5a9cb3af116a2.zip") sha256sums=(7a39d53767963f59c8d5b8a7ebda411b60d1256fe1077a3864cc43cd59281e03) - template-daily-planner() { pkgdesc="Daily Planner template" package() {