|
| 1 | +#!/usr/bin/env bash |
| 2 | +# Copyright (c) 2022 The Toltec Contributors |
| 3 | +# SPDX-License-Identifier: MIT |
| 4 | + |
| 5 | +pkgnames=(template-noso-grid) |
| 6 | +pkgdesc="Nosometric grid template" |
| 7 | +url=https://github.com/RobotCaleb/noso_template |
| 8 | +pkgver=1.0.0 |
| 9 | +timestamp=2022-03-20T18:34Z |
| 10 | +section="templates" |
| 11 | +maintainer="Caleb Anderson <robotrising@gmail.com>" |
| 12 | +license=MIT |
| 13 | +installdepends=(templatectl) |
| 14 | + |
| 15 | +source=("https://github.com/RobotCaleb/noso_template/archive/refs/tags/v${pkgver%-*}.zip") |
| 16 | +sha256sums=(cd7cfcb0c2e9b9734a5e79c00182a4d27858e2c6e2501da54f4d58569171a734) |
| 17 | + |
| 18 | +package() { |
| 19 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 20 | + "$srcdir"/templates/cube-high/noso-cube-high.png |
| 21 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 22 | + "$srcdir"/templates/cube-high/noso-cube-high.svg |
| 23 | + |
| 24 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 25 | + "$srcdir"/templates/cube-low/noso-cube-low.png |
| 26 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 27 | + "$srcdir"/templates/cube-low/noso-cube-low.svg |
| 28 | + |
| 29 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 30 | + "$srcdir"/templates/cube-mid/noso-cube-mid.png |
| 31 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 32 | + "$srcdir"/templates/cube-mid/noso-cube-mid.svg |
| 33 | + |
| 34 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 35 | + "$srcdir"/templates/tall-high/noso-tall-high.png |
| 36 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 37 | + "$srcdir"/templates/tall-high/noso-tall-high.svg |
| 38 | + |
| 39 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 40 | + "$srcdir"/templates/tall-low/noso-tall-low.png |
| 41 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 42 | + "$srcdir"/templates/tall-low/noso-tall-low.svg |
| 43 | + |
| 44 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 45 | + "$srcdir"/templates/tall-mid/noso-tall-mid.png |
| 46 | + install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \ |
| 47 | + "$srcdir"/templates/tall-mid/noso-tall-mid.svg |
| 48 | +} |
| 49 | + |
| 50 | +configure() { |
| 51 | + templatectl add -n "Noso Cube Low Density" -f "noso-cube-low.png" \ |
| 52 | + -c "Custom" -c "Grids" |
| 53 | + templatectl add -n "Noso Cube Mid Density" -f "noso-cube-mid.png" \ |
| 54 | + -c "Custom" -c "Grids" |
| 55 | + templatectl add -n "Noso Cube High Density" -f "noso-cube-high.png" \ |
| 56 | + -c "Custom" -c "Grids" |
| 57 | + templatectl add -n "Noso Tall Low Density" -f "noso-tall-low.png" \ |
| 58 | + -c "Custom" -c "Grids" |
| 59 | + templatectl add -n "Noso Tall Mid Density" -f "noso-tall-mid.png" \ |
| 60 | + -c "Custom" -c "Grids" |
| 61 | + templatectl add -n "Noso Tall High Density" -f "noso-tall-high.png" \ |
| 62 | + -c "Custom" -c "Grids" |
| 63 | +} |
| 64 | + |
| 65 | +preremove() { |
| 66 | + templatectl remove --name "Noso Cube Low Density" |
| 67 | + templatectl remove --name "Noso Cube Mid Density" |
| 68 | + templatectl remove --name "Noso Cube High Density" |
| 69 | + templatectl remove --name "Noso Tall Low Density" |
| 70 | + templatectl remove --name "Noso Tall Mid Density" |
| 71 | + templatectl remove --name "Noso Tall High Density" |
| 72 | +} |
0 commit comments