Skip to content

Commit

Permalink
Merge branch 'testing' into issue/638
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Nov 27, 2023
2 parents a3ccbec + 8115ee4 commit a2e159f
Show file tree
Hide file tree
Showing 37 changed files with 1,133 additions and 80 deletions.
25 changes: 25 additions & 0 deletions docs/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ math | Apps to assist the user in performing mathematical tasks.
readers | Apps for reading and annotating documents (PDF, EPUB, …).
screensharing | Apps for streaming the display between the PC and tablet.
templates | Templates for xochitl notebooks.
splashscreens | Splashscreens for device startup, poweroff, suspend, etc.
utils | System tools and various apps.

If the package does not fit into one of the existing sections, you are free to create a new one and document it here.
Expand Down Expand Up @@ -404,6 +405,21 @@ A list of packages that the current package replaces.
Setting this field allows the current package to overwrite and take ownership of files from other packages.
Note that the replaced packages will not be automatically uninstalled unless you also declare a conflict with them using the [`conflicts` field](#conflicts-field).

#### `provides` field

<table>
<tr>
<th>Required?</th>
<td>No, defaults to <code>()</code></th>
</tr>
<tr>
<th>Type</th>
<td>Array of strings</td>
</tr>
</table>

A list of virtual packages that the current package provides.

#### `package()` function

The `package()` function populates the `$pkgdir` directory with the files and directories that need to be installed using artifacts from the `$srcdir` directory.
Expand Down Expand Up @@ -439,3 +455,12 @@ When upgrading a package from version A to B, the following happens:
* `postupgrade B`, if it exists, is called from version A
* New package files are unpacked and installed
* `configure`, if it exists, is called from version B


### reload-oxide-apps hook

If a package contains one or more files in `/opt/etc/draft` or `/opt/usr/share/applications` the `reload-oxide-apps` method in `install-lib` will be appended to the following:

* `configure`
* `postupgrade`
* `postremove`
2 changes: 1 addition & 1 deletion package/calculator/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(calculator)
pkgdesc="Touch-based calculator"
url=https://github.com/reHackable/Calculator
pkgver=0.0.0-15
pkgver=0.0.0-16
timestamp=2020-08-20T12:28Z
section="math"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
12 changes: 11 additions & 1 deletion package/rmscreens/package → package/changescrn/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(changescrn)
pkgdesc="Change sleep/suspend/poweroff/reboot screens"
url=https://github.com/pr0fsmith/rMscreens/
pkgver=1.0.0-1
pkgver=1.0.0-2
timestamp=2022-03-15T01:28:33Z
section="utils"
maintainer="pr0fsmith <[email protected]>"
Expand All @@ -17,3 +17,13 @@ sha256sums=(3c2e8b0952d848d7326c0a4ce45da625dd7fd0fbc6b564a2d40c3b97015138e3)
package() {
install -Dm755 "$srcdir"/changescrn "$pkgdir/opt/bin/changescrn"
}

configure() {
if [ ! -d /opt/usr/share/backupscrns ] || [ -z "$(ls -A /opt/usr/share/backupscrns)" ]; then
changescrn -b
fi
}

preremove() {
changescrn -r all
}
2 changes: 1 addition & 1 deletion package/chessmarkable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(chessmarkable)
pkgdesc="Chess game"
url=https://github.com/LinusCDE/chessmarkable
pkgver=0.8.0-1
pkgver=0.8.0-2
timestamp=2021-07-22T12:04Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/doomarkable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(doomarkable)
pkgdesc="DOOM game"
url=https://github.com/LinusCDE/doomarkable
pkgver=0.4.1-1
pkgver=0.4.1-2
timestamp=2021-10-31T16:15Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/fingerterm/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(fingerterm)
pkgdesc="Terminal emulator with an on-screen touch keyboard"
url=https://github.com/dixonary/fingerterm-reMarkable
pkgver=1.3.5-14
pkgver=1.3.5-15
timestamp=2020-10-27T12:02Z
section="admin"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/keywriter/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(keywriter)
pkgdesc="Markdown-enabled free writing app"
url=https://github.com/dps/remarkable-keywriter
pkgver=0.2~20-gddc9e73-1
pkgver=0.2~20-gddc9e73-2
timestamp=2022-02-09T07:05:03Z
section="writing"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/koreader/package
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ installdepends=(fbink fbdepth display rm2fb-client)

_srcver="v${pkgver%-*}"
source=(
"https://build.koreader.rocks/download/stable/$_srcver/koreader-remarkable-$_srcver.zip"
"https://github.com/koreader/koreader/releases/download/$_srcver/koreader-remarkable-$_srcver.zip"
koreader.draft
KOReader.oxide
koreader-toltec.service
Expand Down
2 changes: 1 addition & 1 deletion package/netsurf/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(netsurf)
pkgdesc="Lightweight web browser"
url=https://github.com/alex0809/netsurf-reMarkable
pkgver=0.4.0-2
pkgver=0.4.0-3
timestamp=2021-05-31T11:15+00:00
maintainer="Alex Friesenhahn <[email protected]>"
archs=(rmall)
Expand Down
19 changes: 0 additions & 19 deletions package/oxide/package
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ fret() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/fret
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.fret.oxide
}

configure() {
update-desktop-database
}
}

oxide() {
Expand All @@ -66,9 +62,6 @@ oxide() {
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.oxide.oxide
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/oxide.png
}
configure() {
update-desktop-database
}
}

rot() {
Expand Down Expand Up @@ -121,10 +114,6 @@ decay() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/decay
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.decay.oxide
}

configure() {
update-desktop-database
}
}
corrupt() {
pkgdesc="Task Switcher for Oxide"
Expand All @@ -135,10 +124,6 @@ corrupt() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/corrupt
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.corrupt.oxide
}

configure() {
update-desktop-database
}
}

anxiety() {
Expand All @@ -152,10 +137,6 @@ anxiety() {
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/48x48/apps "$srcdir"/release/opt/usr/share/icons/oxide/48x48/apps/image.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/anxiety.png
}

configure() {
update-desktop-database
}
}

oxide-utils() {
Expand Down
2 changes: 1 addition & 1 deletion package/plato/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(plato)
pkgdesc="Document reader"
url=https://github.com/LinusCDE/plato
pkgver=0.9.34-1
pkgver=0.9.34-2
timestamp=2023-03-08T17:58Z
section="readers"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/puzzles/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(puzzles)
timestamp=2021-03-04T14:03-08:00
maintainer="Mattéo Delabre <[email protected]>"
pkgver=0.2.2-3
pkgver=0.2.2-4
license=MIT
pkgdesc="Simon Tatham's Puzzle Package"
url="https://github.com/mrichards42/remarkable_puzzles"
Expand Down
2 changes: 1 addition & 1 deletion package/recrossable/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(recrossable)
pkgdesc="Solve crossword puzzles"
url=https://github.com/sandsmark/recrossable
pkgver=0.0.0-7
pkgver=0.0.0-8
timestamp=2021-01-15T12:58:22Z
section="games"
maintainer="Mattéo Delabre <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/regenda/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(regenda)
pkgdesc="Caldav agenda app"
url=https://github.com/tenJirka/reGenda
pkgver=0.0.2-1
pkgver=0.0.2-2
timestamp=2023-09-06T06:45Z
section="utils"
maintainer="tenJirka <[email protected]>"
Expand Down
142 changes: 142 additions & 0 deletions package/remarkable_templates/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
#!/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 <[email protected]>"
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"
}
}
8 changes: 1 addition & 7 deletions package/reterm/package
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgnames=(reterm)
pkgdesc="Landscape terminal support for the Remarkable 2 + type cover"
section="admin"
pkgver="20230628.1927-1"
pkgver="20230628.1927-2"
timestamp="2023-06-28T19:28:06Z"
maintainer="Eeems <[email protected]>"
url="https://github.com/i-am-shodan/ReTerm"
Expand Down Expand Up @@ -49,9 +49,3 @@ package() {
install -D -m 644 -t "$pkgdir"/opt/etc/draft/icons "$srcdir"/draft/reterm.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/oxide/reterm.oxide
}

configure() {
if is-active "tarnish.service"; then
type update-desktop-database &> /dev/null && update-desktop-database
fi
}
2 changes: 1 addition & 1 deletion package/retris/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(retris)
pkgdesc="Tetris game"
url=https://github.com/LinusCDE/retris
pkgver=0.6.3-3
pkgver=0.6.3-4
timestamp=2021-01-30T02:41Z
section="games"
maintainer="Linus K. <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package/rmfm/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(rmfm)
pkgdesc="Bare-bones file manager using Node.js and sas"
url="https://forgejo.sny.sh/sun/rmFM"
pkgver=1.5.0-1
pkgver=1.5.0-2
timestamp=2023-08-08T22:19:23+02:00
section=utils
maintainer="Sunny <[email protected]>"
Expand Down
Loading

0 comments on commit a2e159f

Please sign in to comment.