forked from Eeems-Org/oxide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package
212 lines (179 loc) · 7.29 KB
/
package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT
pkgnames=(erode fret oxide rot tarnish decay corrupt anxiety liboxide libsentry oxide-utils)
pkgver="2.6~VERSION~"
timestamp="$(date -u +%Y-%m-%dT%H:%MZ)"
maintainer="Eeems <[email protected]>"
url=https://oxide.eeems.codes
license=MIT
source=(oxide.tar.gz)
sha256sums=(SKIP)
image=qt:latest
_sentry=0.5.0
build() {
find . -name "*.pro" -type f -print0 \
| xargs -r -0 sed -i 's/linux-oe-g++/linux-arm-remarkable-g++/g'
CMAKE_TOOLCHAIN_FILE="/usr/share/cmake/$CHOST.cmake" make FEATURES=sentry release
# Cleanup build files
rm -r .build
}
erode() {
pkgdesc="Task manager"
section=utils
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/erode
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/48x48/apps "$srcdir"/release/opt/usr/share/icons/oxide/48x48/apps/erode.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/icons/oxide/702x702/splash "$srcdir"/release/opt/usr/share/icons/oxide/702x702/splash/erode.png
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.erode.oxide
}
configure() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
fret() {
pkgdesc="Take screenshots"
section=utils
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
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() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
oxide() {
pkgdesc="Launcher application"
section=launchers
installdepends=("erode=$pkgver" "fret=$pkgver" "tarnish=$pkgver" "rot=$pkgver" "decay=$pkgver" "corrupt=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" display "libsentry=$_sentry")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/oxide
install -D -m 644 -t "$pkgdir"/opt/etc "$srcdir"/release/opt/etc/oxide.conf
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() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
rot() {
pkgdesc="Manage Oxide settings through the command line"
section=utils
installdepends=("tarnish=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/rot
}
}
tarnish() {
pkgdesc="Service managing power states, connectivity and buttons"
section=utils
installdepends=("liboxide=$pkgver" "libsentry=$_sentry")
package() {
install -D -m 644 -t "$pkgdir"/etc/dbus-1/system.d "$srcdir"/release/etc/dbus-1/system.d/codes.eeems.oxide.conf
install -D -m 644 -t "$pkgdir"/lib/systemd/system "$srcdir"/release/etc/systemd/system/tarnish.service
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/tarnish
}
configure() {
systemctl daemon-reload
if ! is-enabled "tarnish.service"; then
echo ""
echo "Run the following command(s) to use $pkgname as your launcher"
how-to-enable "tarnish.service"
echo ""
fi
}
preremove() {
if systemctl list-units --full -all | grep -Fq 'tarnish.service'; then
echo "Disabling $pkgname"
systemctl disable --now tarnish
fi
}
postremove() {
systemctl daemon-reload
}
}
decay() {
pkgdesc="Lockscreen application"
section=utils
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
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() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
corrupt() {
pkgdesc="Task Switcher for Oxide"
section=utils
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
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() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
anxiety() {
pkgdesc="Screenshot viewer for Oxide"
section=utils
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/anxiety
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/release/opt/usr/share/applications/codes.eeems.anxiety.oxide
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() {
if is-active "tarnish.service"; then
update-desktop-database
fi
}
}
oxide-utils() {
pkgdesc="Command line tools for Oxide"
section=utils
installdepends=("tarnish=$pkgver" "liboxide=$pkgver" "libsentry=$_sentry")
replaces=(notify-send update-desktop-database desktop-file-validate)
conflicts=(notify-send update-desktop-database desktop-file-validate)
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/notify-send
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/update-desktop-database
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/desktop-file-validate
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/xdg-desktop-menu
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/xdg-desktop-icon
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/xdg-open
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/gio
}
}
liboxide() {
pkgdesc="Shared library for oxide applications"
section=devel
package() {
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libliboxide.so*
}
}
libsentry() {
pkgdesc="Sentry SDK for C, C++ and native applications."
section=devel
url=https://github.com/getsentry/sentry-native
pkgver="$_sentry"
timestamp="2021-12-20T14:25:11Z"
package() {
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libsentry.so
}
}