Skip to content

Commit dd08124

Browse files
authored
Stable merge for week 26 of 2024 (#901)
### New Packages - `bandwich` - 0.22.2-1 (#892) - `sysfs_preload` - 1.0.1-1 (#833) ### Updated Packages - `7zip` - 23.01-2 (#890) - `display`, and `rm2fb-client` - 1:0.0.33-3 (#741 #833) - `koreader` - 2024.04-5 (#894) - `lf` - r32-1 (#889) - `oxide`, `oxide-extra`, `oxide-utils`, `inject_evdev`, `liboxide`, `liboxide-dev` - 2.8.4-2 (#833 #903) - `libsentry` - 0.7.6-1 (#833 #903 ) - `bufshot` - 0.1.2-3 (#898) - `dumbskull` - 0.0.1-4 (#898) - `genie` - 0.1.7-2 (#898) - `harmony` - 0.2.3-2 (#898) - `iago` - 0.1.2-2 (#898) - `lamp` - 0.1.1-3 (#898) - `mines` - 0.1.4-4 (#898) - `remux` - 0.3.0-6 (#898 #882) - `rpncalc` - 0.0.3-4 (#898) - `simple` - 0.2.1-2 (#898) - `wordlet` - 0.0.2-4 (#898) - `toltec-base` - 1.4-1 (#897) - `toltec-bootstrap` - 0.4.5-1 (#897) - `toltec-deletion` - 0.1-7 (#887) - `xochitl` - 0.0.0-21 (#833) ### Packages Removed - `bottom` - Entware now provides this package - `ripgrep` - Entware now provides this package ### Tooling - Update build process to use toltecmk (#789).
1 parent eed41f1 commit dd08124

39 files changed

+332
-2873
lines changed

.github/actions/setup/action.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,18 @@ runs:
7070
- name: Setup Python
7171
uses: actions/setup-python@v4
7272
with:
73-
python-version: '3.11'
73+
python-version: '3.12'
7474
- name: Cache Python environment
7575
uses: actions/cache@v3
7676
id: cache-python
7777
with:
78-
path: ${{ env.pythonLocation }}
79-
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
78+
path: .venv
79+
key: .venv-${{ hashFiles('requirements.txt') }}
8080
- name: Install Python dependencies
8181
shell: bash
8282
env:
8383
CACHE_HIT: ${{ steps.cache-python.outputs.cache-hit }}
8484
run: |
8585
if [[ "$CACHE_HIT" != 'true' ]]; then
86-
python -m pip install --upgrade pip
87-
pip install wheel
88-
pip install -r requirements.txt
86+
make .venv/bin/activate
8987
fi

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
private
2-
build
2+
build/
3+
!scripts/build/
34
__pycache__
4-
.venv
5+
.venv/
6+
repo/

Makefile

+24-9
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,30 @@ export USAGE
4848
help:
4949
@echo "$$USAGE"
5050

51-
repo:
51+
.venv/bin/activate: requirements.txt
52+
@echo "Setting up development virtual env in .venv"
53+
python -m venv .venv; \
54+
. .venv/bin/activate; \
55+
python -m pip install -r requirements.txt
56+
57+
repo: .venv/bin/activate
58+
. .venv/bin/activate; \
5259
./scripts/repo_build.py $(FLAGS)
5360

54-
repo-local:
61+
repo-local: .venv/bin/activate
62+
. .venv/bin/activate; \
5563
./scripts/repo_build.py --local $(FLAGS)
5664

57-
repo-new:
65+
repo-new: .venv/bin/activate
66+
. .venv/bin/activate; \
5867
./scripts/repo_build.py --diff $(FLAGS)
5968

60-
repo-check:
69+
repo-check: .venv/bin/activate
70+
. .venv/bin/activate; \
6171
./scripts/repo-check build/repo
6272

63-
$(RECIPES): %:
73+
$(RECIPES): %: .venv/bin/activate
74+
. .venv/bin/activate; \
6475
./scripts/package_build.py $(FLAGS) "$(@)"
6576

6677
push: %:
@@ -85,24 +96,28 @@ $(RECIPES_PUSH): %:
8596
"Make sure rsync is installed on your reMarkable."; \
8697
fi
8798

88-
format:
99+
format: .venv/bin/activate
89100
@echo "==> Checking Bash formatting"
90101
shfmt -d .
91102
@echo "==> Checking Python formatting"
103+
. .venv/bin/activate; \
92104
black --line-length 80 --check --diff scripts
93105

94-
format-fix:
106+
format-fix: .venv/bin/activate
95107
@echo "==> Fixing Bash formatting"
96108
shfmt -l -w .
97109
@echo "==> Fixing Python formatting"
110+
. .venv/bin/activate; \
98111
black --line-length 80 scripts
99112

100-
lint:
113+
lint: .venv/bin/activate
101114
@echo "==> Linting Bash scripts"
102-
shellcheck $$(shfmt -f .) -P SCRIPTDIR
115+
# shellcheck $$(shfmt -f .) -P SCRIPTDIR
103116
@echo "==> Typechecking Python files"
117+
. .venv/bin/activate; \
104118
MYPYPATH=scripts mypy --disallow-untyped-defs scripts
105119
@echo "==> Linting Python files"
120+
. .venv/bin/activate; \
106121
PYTHONPATH=: pylint scripts
107122

108123
$(RECIPES_CLEAN): %:

package/7zip/package

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2023 The Toltec Contributors
2+
# Copyright (c) 2024 The Toltec Contributors
33
# SPDX-License-Identifier: MIT
44
pkgnames=(7zip)
5-
pkgdesc="A file archiver with a high compression ratio."
5+
pkgdesc="Metapackage for 7-zip"
66
url="https://www.7-zip.org/"
77
section="utils"
8-
pkgver=23.01-1
8+
pkgver=23.01-2
99
timestamp=2023-06-20T00:00:00Z
1010
maintainer="Eeems <[email protected]>"
1111
license=LGPL-2.1-or-later
12-
source=(
13-
https://www.7-zip.org/a/7z2301-linux-arm.tar.xz
14-
)
15-
sha256sums=(
16-
9d67650982f819d7557c27dea748fa66ca6c04a3a1148d66716c463580b0550c
17-
)
12+
installdepends=(7-zip)
1813

1914
package() {
20-
install -dm 755 "$pkgdir"/opt/usr/share/licenses/7zip
21-
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/7zz
22-
cp -dr --no-preserve='ownership' "$srcdir"/License.txt "$pkgdir"/opt/usr/share/licenses/7zip
15+
true
2316
}

package/bandwhich/package

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2024 The Toltec Contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
pkgnames=(bandwhich)
6+
pkgdesc="CLI network utilization tool"
7+
url=https://github.com/imsnif/bandwhich
8+
pkgver=0.22.2-1
9+
timestamp=2024-01-27T19:33Z
10+
section="utils"
11+
maintainer="gbyl <[email protected]>"
12+
license=MIT
13+
14+
image=rust:v3.1
15+
source=("https://github.com/imsnif/bandwhich/archive/refs/tags/v${pkgver%-*}.zip")
16+
sha256sums=(5d1eaa1796ec3c16f349cb6b00bd9dba6d425e9323d63af648a41cd68c5d456b)
17+
18+
build() {
19+
cargo build --release
20+
}
21+
22+
package() {
23+
install -D -m 755 "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/bandwhich "$pkgdir"/opt/bin/bandwhich
24+
}

package/bottom/package

-24
This file was deleted.

package/display/package

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ timestamp=2023-08-27T02:39:10Z
88
maintainer="raisjn <[email protected]>"
99
license=MIT
1010
url="https://github.com/ddvk/remarkable2-framebuffer"
11-
pkgver=1:0.0.33-1
11+
pkgver=1:0.0.33-3
1212
_release="${pkgver%-*}"
1313
_release="v${_release#*:}"
1414
_libver=1.0.1
@@ -102,14 +102,16 @@ rm2fb-client() {
102102
replaces=(rm2fb)
103103

104104
package() {
105-
libname="librm2fb_client.so.$_libver"
106-
install -D -m 644 -t "$pkgdir"/opt/lib "$srcdir"/src/client/"$libname"
105+
libname="librm2fb_client.so"
106+
libnamever="$libname.$_libver"
107+
install -D -m 644 -t "$pkgdir"/opt/lib "$srcdir"/src/client/"$libnamever"
107108
install -d "$pkgdir"/usr/lib
108-
ln -s /opt/lib/"$libname" "$pkgdir"/usr/lib/"$libname"
109+
ln -s /opt/lib/"$libnamever" "$pkgdir"/usr/lib/"$libnamever"
110+
ln -s /opt/lib/"$libnamever" "$pkgdir"/opt/lib/"$libname"
109111

110112
for dest in opt/lib usr/lib; do
111-
ln -s "$libname" "$pkgdir/$dest/${libname%.*.*}"
112-
ln -s "$libname" "$pkgdir/$dest/${libname%.*}"
113+
ln -s "$libnamever" "$pkgdir/$dest/${libnamever%.*.*}"
114+
ln -s "$libnamever" "$pkgdir/$dest/${libnamever%.*}"
113115
done
114116

115117
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/rm2fb-client

package/display/rm2fb-preload.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Please do not modify files shipped by Toltec, or they risk being
44
# overwritten with updates. Instead create your own files in this directory.
55
if [[ -f /dev/shm/swtfb.01 ]]; then
6-
export LD_PRELOAD=/opt/lib/librm2fb_client.so.1
6+
export LD_PRELOAD="$LD_PRELOAD:/opt/lib/librm2fb_client.so.1"
77
else
88
echo "rm2fb server is not running: starting without rm2fb client"
99
fi

package/koreader/package

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2021 The Toltec Contributors
2+
# Copyright (c) 2024 The Toltec Contributors
33
# SPDX-License-Identifier: MIT
44

55
pkgnames=(koreader)
66
pkgdesc="Ebook reader supporting PDF, DjVu, EPUB, FB2 and many more formats"
77
url=https://github.com/koreader/koreader
8-
pkgver=2024.04-4
8+
pkgver=2024.04-5
99
timestamp=2024-04-29T19:56:05Z
1010
section="readers"
1111
maintainer="raisjn <[email protected]>"
@@ -37,6 +37,7 @@ package() {
3737
rm "$pkgdir"/opt/koreader/{fbink,fbdepth}
3838
ln -s /opt/bin/fbink "$pkgdir"/opt/koreader/fbink
3939
ln -s /opt/bin/fbdepth "$pkgdir"/opt/koreader/fbdepth
40+
sed -i 's/hasOTAUpdates = yes/hasOTAUpdates = no/' "$pkgdir"/opt/koreader/frontend/device/remarkable/device.lua
4041

4142
install -D -m 644 -t "$pkgdir"/opt/etc/draft/ "$srcdir"/koreader.draft
4243
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications/ "$srcdir"/KOReader.oxide

package/lf/package

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2023 The Toltec Contributors
2+
# Copyright (c) 2024 The Toltec Contributors
33
# SPDX-License-Identifier: MIT
44

55
pkgnames=(lf)
66
pkgdesc="Terminal file manager"
77
url=https://github.com/gokcehan/lf
8-
pkgver=r31-2
9-
timestamp=2023-09-17T12:55Z
8+
pkgver=r32-1
9+
timestamp=2024-03-31T20:04Z
1010
section="utils"
1111
maintainer="gbyl <[email protected]>"
1212
license=MIT
1313
installdepends=(libncurses-dev)
1414

1515
image=golang:v3.1
1616
source=("https://github.com/gokcehan/lf/archive/refs/tags/${pkgver%-*}.zip")
17-
sha256sums=(217e152f09ae0cc8ab8f12fd92f705dd12630907de2b6a78ffc2727950921f97)
17+
sha256sums=(571ee17d8181d77a3b8bcd7aaaff0bde062c1851d93e9d324dfe15948136891a)
1818

1919
build() {
2020
export GOARCH=arm

package/oxide/package

+18-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2021 The Toltec Contributors
2+
# Copyright (c) 2024 The Toltec Contributors
33
# SPDX-License-Identifier: MIT
44

5+
archs=(rm1 rm2)
56
pkgnames=(oxide oxide-extra oxide-utils inject_evdev liboxide liboxide-dev libsentry)
6-
_oxidever=2.7
7-
pkgver=$_oxidever-7
8-
_sentryver=0.5.0
9-
timestamp=2023-12-05T04:43:04Z
7+
_oxidever=2.8.4
8+
pkgver=$_oxidever-2
9+
_sentryver=0.7.6
10+
timestamp=2024-06-26T22:31:46Z
1011
maintainer="Eeems <[email protected]>"
1112
url=https://oxide.eeems.codes
1213
license=MIT
@@ -18,21 +19,23 @@ source=(
1819
launcherctl-oxide
1920
)
2021
sha256sums=(
21-
e1f20fc60ae8edccb941e09c0e61cbfb58f1f8a5f64be98870eb2d079f83316f
22+
bfcb26c0493544fabc472bebc1eb372e49e58774163533ae937b6e814222f03e
2223
SKIP
2324
SKIP
2425
)
2526

2627
build() {
2728
find . -name "*.pro" -type f -print0 \
2829
| xargs -r -0 sed -i 's/linux-oe-g++/linux-arm-remarkable-g++/g'
30+
find . -name "*.pri" -type f -print0 \
31+
| xargs -r -0 sed -i 's/linux-oe-g++/linux-arm-remarkable-g++/g'
2932
CMAKE_TOOLCHAIN_FILE="/usr/share/cmake/$CHOST.cmake" make FEATURES=sentry release
3033
}
3134

3235
oxide() {
3336
pkgdesc="Launcher application"
3437
section="launchers"
35-
installdepends=("oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver" "reboot-guard" "jq")
38+
installdepends=("oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver" reboot-guard jq display launcherctl)
3639
replaces=(erode tarnish decay corrupt)
3740
conflicts=(erode tarnish decay corrupt)
3841

@@ -59,6 +62,10 @@ oxide() {
5962
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.corrupt.oxide
6063
# launcherctl registration
6164
install -D -T -m 755 "$srcdir"/launcherctl-oxide "$pkgdir"/opt/share/launcherctl/oxide
65+
if [[ $arch = rm2 ]]; then
66+
install -D -m 644 -t "$pkgdir"/etc/systemd/system/tarnish.service.d \
67+
"$srcdir"/toltec-rm2-override.conf
68+
fi
6269
}
6370

6471
configure() {
@@ -138,7 +145,8 @@ liboxide() {
138145
section="devel"
139146

140147
package() {
141-
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libliboxide.so*
148+
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/liboxide.so*
149+
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libqsgepaper.so*
142150
}
143151
}
144152

@@ -148,7 +156,7 @@ liboxide-dev() {
148156
installdepends=("liboxide=$pkgver")
149157

150158
package() {
151-
install -D -m 755 -t "$pkgdir"/opt/lib/pkgconfig "$srcdir"/release/opt/lib/pkgconfig/liboxide.pc
159+
install -D -m 755 -t "$pkgdir"/opt/lib/pkgconfig "$srcdir"/release/opt/lib/pkgconfig/oxide.pc
152160
install -D -m 755 -t "$pkgdir"/opt/include "$srcdir"/release/opt/include/epframebuffer.h
153161
install -D -m 755 -t "$pkgdir"/opt/include "$srcdir"/release/opt/include/liboxide.h
154162
cp -ar "$srcdir"/release/opt/include/liboxide/ "$pkgdir"/opt/include/
@@ -160,7 +168,7 @@ libsentry() {
160168
section="devel"
161169
url=https://github.com/getsentry/sentry-native
162170
pkgver="$_sentryver"
163-
timestamp="2021-12-20T14:25:11Z"
171+
timestamp="2024-06-12T08:04:15Z"
164172

165173
package() {
166174
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libsentry.so

package/ripgrep/package

-24
This file was deleted.

package/rmkit/launcherctl-remux

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ remux_ppid() {
77
grep "PPid:" "/proc/$(remux_pid)/status" | awk '{print $2}'
88
}
99
draft_apps() {
10-
find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do
10+
find {/opt,}/etc/draft -maxdepth 1 -type f 2> /dev/null | while read -r file; do
1111
name="$(grep 'name=' "$file" | sed 's|^name=||')"
1212
call="$(grep 'call=' "$file" | sed 's|^call=||')"
1313
echo -e "${name}\t${call}"
@@ -89,7 +89,7 @@ case "$1" in
8989
systemctl disable remux.service
9090
;;
9191
apps)
92-
find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do
92+
find {/opt,}/etc/draft -maxdepth 1 -type f 2> /dev/null | while read -r file; do
9393
grep 'name=' "$file" | sed 's|^name=||'
9494
done
9595
;;

0 commit comments

Comments
 (0)