File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments