-
Couldn't load subscription status.
- Fork 70
templatectl: Add/Remove items from templates.json via cli #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Eeems
merged 46 commits into
toltec-dev:testing
from
PeterGrace:peter.grace/add-templatectl-to-testing
Jan 17, 2021
Merged
Changes from 3 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e3bd2c9
templatectl package
PeterGrace bdf11f3
remove the rm of .cargo/config
PeterGrace 9a892c0
add package that helps test templatectl
PeterGrace 2135b3e
changes to facilitate linking
PeterGrace 139ee74
satisfy shfmt
PeterGrace c422378
shfmt must be satisfied
PeterGrace a0c6057
quote bash variables
PeterGrace 008418d
Update package/templatectl/package
PeterGrace 2626ee6
Update package/template-cartesian-graph/package
PeterGrace 4da4ed9
Update package/template-cartesian-graph/package
PeterGrace 9107fa8
Update package/template-cartesian-graph/package
PeterGrace 5018812
Update package/templatectl/package
PeterGrace e417719
Update package/template-cartesian-graph/package
PeterGrace 7fc27c4
Update package/template-cartesian-graph/package
PeterGrace 3dce785
Update package/template-cartesian-graph/package
PeterGrace d484970
Update package/template-cartesian-graph/package
PeterGrace 02ebd27
Update package/templatectl/package
PeterGrace 04f72bf
Update package/template-cartesian-graph/package
PeterGrace 24a7dfa
bump templatectl version in package list to absorb new fixes for icon…
PeterGrace b5cf2a0
Merge branch 'peter.grace/add-templatectl-to-testing' of github.com:P…
PeterGrace d502e9e
update templatectl to v0.1.2 which fixes iconcode rendering bug
PeterGrace 5cb6655
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems de834a4
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 6766231
Switch to bind mount
Eeems fb6bd5d
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 5dea29c
Remove extra space
Eeems ede8029
fix path for bindmount
PeterGrace 2bdb5bd
revert changing the bind mount path, we don't want the stuff in /opt/…
PeterGrace 9419dad
fix path to match other path assumptions
PeterGrace e8a5045
also fix uninstall message
PeterGrace fa8c31d
update the path copying
PeterGrace 32ffb6a
fix path variable
PeterGrace 7c7558d
missed a path reference
PeterGrace 1b8311a
bump package number to help stop confusion
PeterGrace f0bdce4
umount if you can, ignore if you cant
PeterGrace 4ea0b2f
add a message if unmount fails.
PeterGrace a62e15f
Fix bug with package-build
Eeems 59526c6
Add system upgrade warning
Eeems fef2c91
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 1b4b22b
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems 3530414
Update package/templatectl/package
PeterGrace dce62a1
Update package
Eeems a424947
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
matteodelabre 2252bf8
update templatectl to v0.1.3 which includes template file change notice
PeterGrace 9681995
Update package
Eeems 2c1a2fe
Update package
Eeems File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2020 The Toltec Contributors | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| pkgnames=(remarkable_math_graph) | ||
| pkgdesc="An example template for the reMarkable tablet" | ||
| url=https://github.com/PeterGrace/remarkable_math_graph | ||
| pkgver=0.0.2-1 | ||
| timestamp=2021-01-14T02:03Z | ||
| section=utils | ||
| maintainer="Peter Grace <[email protected]>" | ||
| license=MIT | ||
| depends=(templatectl) | ||
|
|
||
| image=qt:v1.2.2 | ||
| source=(https://github.com/PeterGrace/remarkable_math_graph/archive/v0.0.2.zip) | ||
| sha256sums=(f782efc048af932bd34a2390f757aecb9b5b422980ed516b99431ac0f8891926) | ||
|
|
||
| build() { | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| apt-get update -y | ||
| apt-get install -y \ | ||
| --no-install-recommends \ | ||
| -o Dpkg::Options::="--force-confdef" \ | ||
| imagemagick librsvg2-bin | ||
| convert -scale 26.464% remarkable_math_graph_qcadexport.svg \ | ||
| remarkable_math_graph.svg | ||
| convert remarkable_math_graph.svg remarkable_math_graph.png | ||
Eeems marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| package() { | ||
| install -D -m 755 -t "$pkgdir"/usr/share/remarkable/templates \ | ||
Eeems marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "$srcdir"/remarkable_math_graph.png | ||
| install -D -m 755 -t "$pkgdir"/usr/share/remarkable/templates \ | ||
| "$srcdir"/remarkable_math_graph.svg | ||
| } | ||
|
|
||
| configure() { | ||
| templatectl add -n "Math Graph" -f "remarkable_math_graph" -c "Custom" \ | ||
| -c "Math" | ||
| } | ||
|
|
||
| preremove() { | ||
| templatectl remove -n "Math Graph" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/usr/bin/env bash | ||
| # Copyright (c) 2020 The Toltec Contributors | ||
PeterGrace marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| pkgnames=(templatectl) | ||
| pkgdesc="Tool to add/remove templates for xochitl" | ||
| url=https://github.com/PeterGrace/templatectl | ||
| pkgver=0.1.0-1 | ||
| timestamp=2021-01-14T01:54Z | ||
| section=utils | ||
PeterGrace marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| maintainer="Peter Grace <[email protected]>" | ||
| license=MIT | ||
|
|
||
| image=rust:v1.2.2 | ||
| source=(https://github.com/PeterGrace/templatectl/archive/v0.1.0.zip) | ||
PeterGrace marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| sha256sums=(521621c076ba79f6e7bce0b36ba129a61260a35e8d7f5ec3ad9a7390882ed60c) | ||
|
|
||
| build() { | ||
| cargo build --release | ||
| } | ||
|
|
||
| package() { | ||
| install -D -m 755 -t "$pkgdir"/opt/bin \ | ||
| "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/templatectl | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.