Skip to content
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e3bd2c9
templatectl package
PeterGrace Jan 14, 2021
bdf11f3
remove the rm of .cargo/config
PeterGrace Jan 14, 2021
9a892c0
add package that helps test templatectl
PeterGrace Jan 14, 2021
2135b3e
changes to facilitate linking
PeterGrace Jan 14, 2021
139ee74
satisfy shfmt
PeterGrace Jan 14, 2021
c422378
shfmt must be satisfied
PeterGrace Jan 14, 2021
a0c6057
quote bash variables
PeterGrace Jan 14, 2021
008418d
Update package/templatectl/package
PeterGrace Jan 14, 2021
2626ee6
Update package/template-cartesian-graph/package
PeterGrace Jan 14, 2021
4da4ed9
Update package/template-cartesian-graph/package
PeterGrace Jan 14, 2021
9107fa8
Update package/template-cartesian-graph/package
PeterGrace Jan 14, 2021
5018812
Update package/templatectl/package
PeterGrace Jan 14, 2021
e417719
Update package/template-cartesian-graph/package
PeterGrace Jan 14, 2021
7fc27c4
Update package/template-cartesian-graph/package
PeterGrace Jan 14, 2021
3dce785
Update package/template-cartesian-graph/package
PeterGrace Jan 15, 2021
d484970
Update package/template-cartesian-graph/package
PeterGrace Jan 15, 2021
02ebd27
Update package/templatectl/package
PeterGrace Jan 15, 2021
04f72bf
Update package/template-cartesian-graph/package
PeterGrace Jan 15, 2021
24a7dfa
bump templatectl version in package list to absorb new fixes for icon…
PeterGrace Jan 15, 2021
b5cf2a0
Merge branch 'peter.grace/add-templatectl-to-testing' of github.com:P…
PeterGrace Jan 15, 2021
d502e9e
update templatectl to v0.1.2 which fixes iconcode rendering bug
PeterGrace Jan 15, 2021
5cb6655
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems Jan 16, 2021
de834a4
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems Jan 16, 2021
6766231
Switch to bind mount
Eeems Jan 16, 2021
fb6bd5d
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems Jan 16, 2021
5dea29c
Remove extra space
Eeems Jan 16, 2021
ede8029
fix path for bindmount
PeterGrace Jan 17, 2021
2bdb5bd
revert changing the bind mount path, we don't want the stuff in /opt/…
PeterGrace Jan 17, 2021
9419dad
fix path to match other path assumptions
PeterGrace Jan 17, 2021
e8a5045
also fix uninstall message
PeterGrace Jan 17, 2021
fa8c31d
update the path copying
PeterGrace Jan 17, 2021
32ffb6a
fix path variable
PeterGrace Jan 17, 2021
7c7558d
missed a path reference
PeterGrace Jan 17, 2021
1b8311a
bump package number to help stop confusion
PeterGrace Jan 17, 2021
f0bdce4
umount if you can, ignore if you cant
PeterGrace Jan 17, 2021
4ea0b2f
add a message if unmount fails.
PeterGrace Jan 17, 2021
a62e15f
Fix bug with package-build
Eeems Jan 17, 2021
59526c6
Add system upgrade warning
Eeems Jan 17, 2021
fef2c91
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems Jan 17, 2021
1b4b22b
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
Eeems Jan 17, 2021
3530414
Update package/templatectl/package
PeterGrace Jan 17, 2021
dce62a1
Update package
Eeems Jan 17, 2021
a424947
Merge branch 'testing' into peter.grace/add-templatectl-to-testing
matteodelabre Jan 17, 2021
2252bf8
update templatectl to v0.1.3 which includes template file change notice
PeterGrace Jan 17, 2021
9681995
Update package
Eeems Jan 17, 2021
2c1a2fe
Update package
Eeems Jan 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/draft/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(draft)
pkgdesc="Launcher which wraps around the standard interface"
url=https://github.com/dixonary/draft-reMarkable
pkgver=0.2.0-17
pkgver=0.2.0-18
timestamp=2020-07-20T10:23Z
section="launchers"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/oxide/package
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

pkgnames=(erode fret oxide rot tarnish decay)
pkgver=2.1~beta-2
pkgver=2.1~beta-3
timestamp=2021-01-07T03:28Z
maintainer="Eeems <[email protected]>"
license=MIT
Expand Down
2 changes: 1 addition & 1 deletion package/reboot-guard/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(reboot-guard)
pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass"
url=https://github.com/stephanritscher/reboot-guard
pkgver=1.0.1-5
pkgver=1.0.1-6
timestamp=2020-05-04T06:16Z
section="devel"
maintainer="Eeems <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions package/rmkit/package
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ build() {
genie() {
pkgdesc="Gesture engine that connects commands to gestures"
url="https://rmkit.dev/apps/genie"
pkgver=0.1.2-1
pkgver=0.1.2-2
section="utils"

package() {
Expand Down Expand Up @@ -98,7 +98,7 @@ nao() {
remux() {
pkgdesc="App launcher that supports multi-tasking applications"
url="https://rmkit.dev/apps/remux"
pkgver=0.1.7-1
pkgver=0.1.7-2
section="launchers"

package() {
Expand Down
36 changes: 36 additions & 0 deletions package/template-cartesian-graph/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Copyright (c) 2021 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(template-cartesian-graph)
pkgdesc="Cartesian graph template"
url=https://github.com/PeterGrace/template-cartesian-graph
pkgver=1.0.0-4
timestamp=2021-01-14T17:46Z
section="templates"
maintainer="Peter Grace <[email protected]>"
license=MIT
depends=(templatectl)

source=("https://github.com/PeterGrace/template-cartesian-graph/archive/v${pkgver%-*}.zip")
sha256sums=(d3215546c6fd709bb5988b7042ce5fb990d9a030d783ed7505fcc2dbedbc0e0f)

package() {
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \
"$srcdir"/template-cartesian-graph.png
install -D -m 755 -t "$pkgdir"/opt/share/remarkable/templates \
"$srcdir"/template-cartesian-graph.svg
}

configure() {
templatectl add --name "Cartesian Graph" --filename "template-cartesian-graph" \
--category "Custom" --category "Math"
}

preremove() {
templatectl remove --name "Cartesian Graph"
}

preupgrade() {
templatectl remove --name "Cartesian Graph"
}
61 changes: 61 additions & 0 deletions package/templatectl/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/usr/bin/env bash
# Copyright (c) 2021 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(templatectl)
pkgdesc="Tool to add/remove templates for xochitl"
url=https://github.com/PeterGrace/templatectl
pkgver=0.1.2-3
timestamp=2021-01-15T01:23Z
section="templates"
maintainer="Peter Grace <[email protected]>"
license=MIT

image=rust:v1.2.2
source=(
"https://github.com/PeterGrace/templatectl/archive/v${pkgver%-*}.zip"
usr-share-remarkable-templates.mount
)
sha256sums=(
305e3dbf29aea7f762fba22ceebfa004a5f666ae96fdb8776b2acfdb39539469
SKIP
)

build() {
cargo build --release
}

package() {
install -D -m 755 -t "$pkgdir"/opt/bin \
"$srcdir"/target/armv7-unknown-linux-gnueabihf/release/templatectl
install -D -t "$pkgdir"/lib/systemd/system "$srcdir"/usr-share-remarkable-templates.mount
}

preinstall() {
local target_path=share/remarkable/templates
if [ ! -d /home/root/.entware/"$target_path" ]; then
mkdir -p /home/root/.entware/"$target_path"
cp -r /usr/"$target_path"/* /home/root/.entware/"$target_path"
fi
}

postupgrade() {
systemctl stop usr-share-remarkable-templates.mount
}

configure() {
systemctl daemon-reload
systemctl enable --now usr-share-remarkable-templates.mount
echo "If you perform a system upgrade that adds new templates"
echo "Manual intervention may be required to handle adding the new templates"
}

preremove() {
systemctl disable --now usr-share-remarkable-templates.mount
}

postremove() {
systemctl daemon-reload
echo "To fully remove templatectl you'll need to run the following command:"
echo " rm -rf /home/root/.entware/share/remarkable/templates"
}
14 changes: 14 additions & 0 deletions package/templatectl/usr-share-remarkable-templates.mount
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Bind mount /opt/share/remarkable/templates over /usr/share/remarkable/templates
DefaultDependencies=no
Conflicts=umount.target
Before=local-fs.target umount.target

[Mount]
What=/home/root/.entware/share/remarkable/templates
Where=/usr/share/remarkable/templates
Type=none
Options=bind

[Install]
WantedBy=local-fs.target
2 changes: 1 addition & 1 deletion scripts/package-build
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ SCRIPT
for step in pre post; do
if [[ $(type -t "$step"upgrade) = function ]] \
|| [[ $(type -t "$step"remove) = function ]] \
|| [ -d "$pkgdir"/opt/usr/share/applications ] && [ $step = post ]; then
|| { [ -d "$pkgdir"/opt/usr/share/applications ] && [ $step = post ]; }; then
{
maintainer-script-header

Expand Down