forked from Eeems-Org/oxide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package
107 lines (90 loc) · 3.34 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
#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT
pkgnames=(erode fret oxide rot tarnish decay)
pkgver="2.1.2~beta-$(cat package/oxide/version.txt)"
timestamp="$(date -u +%Y-%m-%dT%H:%MZ)"
maintainer="Eeems <[email protected]>"
license=MIT
source=(oxide.tar.gz)
sha256sums=(SKIP)
erode() {
pkgdesc="Task manager"
url=https://github.com/Eeems/oxide/tree/master/applications/process-manager
section=utils
depends=("tarnish (= $pkgver)")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/erode
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/opt/usr/share/applications/codes.eeems.erode.oxide
}
}
fret() {
pkgdesc="Take screenshots"
url=https://github.com/Eeems/oxide/tree/master/applications/screenshot-tool
section=utils
depends=("tarnish (= $pkgver)")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/fret
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/opt/usr/share/applications/codes.eeems.fret.oxide
}
}
oxide() {
pkgdesc="Launcher application"
url=https://github.com/Eeems/oxide/tree/master/applications/launcher
section=launchers
depends=("erode (= $pkgver)" "fret (= $pkgver)" "tarnish (= $pkgver)" "rot (= $pkgver)" "decay (= $pkgver)")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/oxide
install -D -m 644 -t "$pkgdir"/opt/etc "$srcdir"/opt/etc/oxide.conf
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/opt/usr/share/applications/codes.eeems.oxide.oxide
}
configure() {
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
}
}
rot() {
pkgdesc="Manage Oxide settings through the command line"
url=https://github.com/Eeems/oxide/tree/master/applications/settings-manager
section=utils
depends=("tarnish (= $pkgver)")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/rot
}
}
tarnish() {
pkgdesc="Service managing power states, connectivity and buttons"
url=https://github.com/Eeems/oxide/tree/master/applications/system-service
section=utils
package() {
install -D -m 644 -t "$pkgdir"/etc/dbus-1/system.d "$srcdir"/etc/dbus-1/system.d/codes.eeems.oxide.conf
install -D -m 644 -t "$pkgdir"/lib/systemd/system "$srcdir"/etc/systemd/system/tarnish.service
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/tarnish
}
configure() {
systemctl daemon-reload
}
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"
url=https://github.com/Eeems/oxide/tree/master/applications/lockscreen
section=utils
depends=("tarnish (= $pkgver)")
package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/opt/bin/decay
install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/opt/usr/share/applications/codes.eeems.decay.oxide
}
}