|
| 1 | +#!/usr/bin/env bash |
| 2 | +# Copyright (c) 2023 The Toltec Contributors |
| 3 | +# SPDX-License-Identifier: MIT |
| 4 | + |
| 5 | +pkgnames=( |
| 6 | + template-daily-planner |
| 7 | + template-weekly-planner |
| 8 | + template-journal |
| 9 | + template-meeting-notes |
| 10 | + template-smart-goals |
| 11 | + template-good-time-journal |
| 12 | +) |
| 13 | +url=https://github.com/msencer/remarkable_templates |
| 14 | +pkgver=0.0.0-1 |
| 15 | +timestamp=2023-07-27T12:28:59Z |
| 16 | +section="templates" |
| 17 | +maintainer="Eeems <eeems@eeems.email>" |
| 18 | +license=MIT |
| 19 | +installdepends=(templatectl) |
| 20 | + |
| 21 | +source=("https://github.com/msencer/remarkable_templates/archive/03282d34b905e7e6431132b022b5a9cb3af116a2.zip") |
| 22 | +sha256sums=(7a39d53767963f59c8d5b8a7ebda411b60d1256fe1077a3864cc43cd59281e03) |
| 23 | + |
| 24 | +template-daily-planner() { |
| 25 | + pkgdesc="Daily Planner template" |
| 26 | + package() { |
| 27 | + install -D -m 755 \ |
| 28 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 29 | + "$srcdir"/templates/pngs/daily_planner.png |
| 30 | + } |
| 31 | + configure() { |
| 32 | + templatectl add \ |
| 33 | + --name "Daily Planner" \ |
| 34 | + --filename "daily_planner" \ |
| 35 | + --category "Custom" \ |
| 36 | + --category "Life/organize" \ |
| 37 | + --icon_code "e9da" |
| 38 | + } |
| 39 | + preremove() { |
| 40 | + templatectl remove --name "Daily Planner" |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +template-weekly-planner() { |
| 45 | + pkgdesc="Weekly Planner template" |
| 46 | + package() { |
| 47 | + install -D -m 755 \ |
| 48 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 49 | + "$srcdir"/templates/pngs/weekly_planner.png |
| 50 | + } |
| 51 | + configure() { |
| 52 | + templatectl add \ |
| 53 | + --name "Weekly Planner" \ |
| 54 | + --filename "weekly_planner" \ |
| 55 | + --category "Custom" \ |
| 56 | + --category "Life/organize" \ |
| 57 | + --icon_code "e997" |
| 58 | + } |
| 59 | + preremove() { |
| 60 | + templatectl remove --name "Weekly Planner" |
| 61 | + } |
| 62 | +} |
| 63 | + |
| 64 | +template-journal() { |
| 65 | + pkgdesc="Journal template" |
| 66 | + package() { |
| 67 | + install -D -m 755 \ |
| 68 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 69 | + "$srcdir"/templates/pngs/journal.png |
| 70 | + } |
| 71 | + configure() { |
| 72 | + templatectl add \ |
| 73 | + --name "Journal" \ |
| 74 | + --filename "journal" \ |
| 75 | + --category "Custom" \ |
| 76 | + --category "Life/organize" \ |
| 77 | + --icon_code "e991" |
| 78 | + } |
| 79 | + preremove() { |
| 80 | + templatectl remove --name "Journal" |
| 81 | + } |
| 82 | +} |
| 83 | + |
| 84 | +template-meeting-notes() { |
| 85 | + pkgdesc="Meeting Notes template" |
| 86 | + package() { |
| 87 | + install -D -m 755 \ |
| 88 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 89 | + "$srcdir"/templates/pngs/meeting_notes.png |
| 90 | + } |
| 91 | + configure() { |
| 92 | + templatectl add \ |
| 93 | + --name "1:1 / Meeting Notes" \ |
| 94 | + --filename "meeting_notes" \ |
| 95 | + --category "Custom" \ |
| 96 | + --category "Life/organize" \ |
| 97 | + --icon_code "e9d8" |
| 98 | + } |
| 99 | + preremove() { |
| 100 | + templatectl remove --name "1:1 / Meeting Notes" |
| 101 | + } |
| 102 | +} |
| 103 | + |
| 104 | +template-smart-goals() { |
| 105 | + pkgdesc="Smart Goals template" |
| 106 | + package() { |
| 107 | + install -D -m 755 \ |
| 108 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 109 | + "$srcdir"/templates/pngs/goals.png |
| 110 | + } |
| 111 | + configure() { |
| 112 | + templatectl add \ |
| 113 | + --name "Smart Goals" \ |
| 114 | + --filename "goals" \ |
| 115 | + --category "Custom" \ |
| 116 | + --category "Life/organize" \ |
| 117 | + --icon_code "e98f" |
| 118 | + } |
| 119 | + preremove() { |
| 120 | + templatectl remove --name "Smart Goals" |
| 121 | + } |
| 122 | +} |
| 123 | + |
| 124 | +template-good-time-journal() { |
| 125 | + pkgdesc="Smart Goals template" |
| 126 | + package() { |
| 127 | + install -D -m 755 \ |
| 128 | + -t "$pkgdir"/opt/share/remarkable/templates \ |
| 129 | + "$srcdir"/templates/pngs/gt_journal.png |
| 130 | + } |
| 131 | + configure() { |
| 132 | + templatectl add \ |
| 133 | + --name "Good Time Journal" \ |
| 134 | + --filename "gt_journal" \ |
| 135 | + --category "Custom" \ |
| 136 | + --category "Life/organize" \ |
| 137 | + --icon_code "e9b2" |
| 138 | + } |
| 139 | + preremove() { |
| 140 | + templatectl remove --name "Good Time Journal" |
| 141 | + } |
| 142 | +} |
0 commit comments