Skip to content

Commit c82d680

Browse files
authored
Merge branch 'testing' into 3.5.2
2 parents 3d8afcf + 705b0de commit c82d680

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

package/rmstylusbutton/package

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2025 The Toltec Contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
archs=(rm2)
6+
pkgnames=(rmstylusbutton)
7+
_pkgver=3.0
8+
pkgver=$_pkgver-1
9+
pkgdesc="Use a stylus button with the reMarkable 2"
10+
timestamp=2024-03-04T04:30:52Z
11+
maintainer="Moritz <[email protected]>"
12+
license=GPL-3.0
13+
url=https://github.com/rschroll/RMStylusButton
14+
section="utils"
15+
installdepends=(xochitl)
16+
conflicts=(remarkable-stylus)
17+
18+
image=base:v3.2
19+
source=(
20+
"$url/archive/refs/tags/v$_pkgver.tar.gz"
21+
rmstylusbutton.service
22+
)
23+
sha256sums=(
24+
5f468b9f78b705ca67ea3288ae923b10fb70193c236b31507a4e6148ebb4e60e
25+
SKIP
26+
)
27+
28+
build() {
29+
export CC=arm-linux-gnueabihf-gcc
30+
make
31+
}
32+
33+
package() {
34+
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/RMStylusButton/RMStylusButton
35+
install -D -m 644 -t "$pkgdir"/lib/systemd/system/ "$srcdir"/rmstylusbutton.service
36+
}
37+
38+
configure() {
39+
systemctl daemon-reload
40+
systemctl enable --now rmstylusbutton.service
41+
}
42+
43+
preremove() {
44+
disable-unit rmstylusbutton.service
45+
}
46+
47+
postremove() {
48+
systemctl daemon-reload
49+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Stylus Button Input
3+
After=xochitl.service
4+
5+
[Service]
6+
ExecStart=/opt/bin/RMStylusButton
7+
Restart=on-failure
8+
9+
[Install]
10+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)