-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,22 @@ | |
# Copyright (c) 2021 The Toltec Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
pkgnames=(erode fret oxide rot tarnish decay corrupt anxiety oxide-utils inject_evdev liboxide libsentry) | ||
_oxidever=2.6 | ||
pkgnames=(oxide oxide-extra oxide-utils inject_evdev liboxide libsentry) | ||
_oxidever=2.7 | ||
pkgver=$_oxidever-2 | ||
_sentryver=0.5.0 | ||
timestamp=2023-06-05T23:27:53Z | ||
timestamp=2023-12-05T04:43:04Z | ||
maintainer="Eeems <[email protected]>" | ||
url=https://oxide.eeems.codes | ||
license=MIT | ||
flags=(patch_rm2fb) | ||
image=qt:v2.3 | ||
image=qt:v3.1 | ||
source=( | ||
"https://github.com/Eeems-Org/oxide/archive/refs/tags/v$_oxidever.zip" | ||
toltec-rm2-override.conf | ||
) | ||
sha256sums=( | ||
bbcf83302f530afe069974121496be6f8118eadba3c00633f834db026e41ae95 | ||
2460ec84d8821943cf74e92fbbcdebb8fb36e45861ec070a0f70436802b4cc27 | ||
SKIP | ||
) | ||
|
||
|
@@ -27,68 +27,37 @@ build() { | |
CMAKE_TOOLCHAIN_FILE="/usr/share/cmake/$CHOST.cmake" make FEATURES=sentry release | ||
} | ||
|
||
erode() { | ||
pkgdesc="Task manager" | ||
section="admin" | ||
installdepends=(display "tarnish=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
oxide() { | ||
pkgdesc="Launcher application" | ||
section="launchers" | ||
installdepends=("oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
replaces=(erode tarnish decay corrupt) | ||
conflicts=(erode tarnish decay corrupt) | ||
|
||
package() { | ||
package(){ | ||
# System service | ||
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 | ||
# Task manager | ||
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 | ||
} | ||
} | ||
|
||
fret() { | ||
pkgdesc="Take screenshots" | ||
section="utils" | ||
installdepends=("tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
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 | ||
} | ||
} | ||
|
||
oxide() { | ||
pkgdesc="Launcher application" | ||
section="launchers" | ||
installdepends=("erode=$pkgver" "fret=$pkgver" "tarnish=$pkgver" "rot=$pkgver" "decay=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
package() { | ||
# Launcher | ||
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 | ||
# Lockscreen | ||
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 | ||
# Task switcher | ||
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 | ||
} | ||
} | ||
|
||
rot() { | ||
pkgdesc="Manage Oxide settings through the command line" | ||
section="admin" | ||
installdepends=("tarnish=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/rot | ||
} | ||
} | ||
|
||
tarnish() { | ||
pkgdesc="Service managing power states, connectivity and buttons" | ||
section="devel" | ||
installdepends=(display xochitl "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
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 | ||
if [[ $arch = rm2 ]]; then | ||
install -D -m 644 -t "$pkgdir"/etc/systemd/system/tarnish.service.d \ | ||
"$srcdir"/toltec-rm2-override.conf | ||
fi | ||
} | ||
configure() { | ||
configure(){ | ||
systemctl daemon-reload | ||
if ! is-enabled "tarnish.service"; then | ||
echo "" | ||
|
@@ -97,6 +66,7 @@ tarnish() { | |
echo "" | ||
fi | ||
} | ||
|
||
preremove() { | ||
if is-active tarnish; then | ||
echo "Stopping tarnish" | ||
|
@@ -107,38 +77,24 @@ tarnish() { | |
systemctl disable tarnish | ||
fi | ||
} | ||
|
||
postremove() { | ||
systemctl daemon-reload | ||
} | ||
} | ||
|
||
decay() { | ||
pkgdesc="Lockscreen application" | ||
section="utils" | ||
installdepends=(display "tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
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 | ||
} | ||
} | ||
corrupt() { | ||
pkgdesc="Task Switcher for Oxide" | ||
section="utils" | ||
installdepends=(display "tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
|
||
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 | ||
} | ||
} | ||
|
||
anxiety() { | ||
pkgdesc="Screenshot viewer for Oxide" | ||
oxide-extra() { | ||
pkgdesc="Extra applications for oxide" | ||
section="utils" | ||
installdepends=(display "tarnish=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
installdepends=("oxide=$pkgver" "oxide-utils=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
replaces=(fret anxiety) | ||
conflicts=(fret anxiety) | ||
|
||
package() { | ||
# Screenshot daemon | ||
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 | ||
# Screenshot viewer | ||
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 | ||
|
@@ -149,11 +105,12 @@ anxiety() { | |
oxide-utils() { | ||
pkgdesc="Command line tools for Oxide" | ||
section="admin" | ||
installdepends=("tarnish=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
replaces=(notify-send) | ||
conflicts=(notify-send) | ||
installdepends=("oxide=$pkgver" "liboxide=$pkgver" "libsentry=$_sentryver") | ||
replaces=(rot notify-send update-desktop-database desktop-file-validate) | ||
conflicts=(rot notify-send update-desktop-database desktop-file-validate) | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/release/opt/bin/rot | ||
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 | ||
|
@@ -189,7 +146,7 @@ libsentry() { | |
section="devel" | ||
url=https://github.com/getsentry/sentry-native | ||
pkgver="$_sentryver" | ||
timestamp="2022-08-02T14:40:22Z" | ||
timestamp="2021-12-20T14:25:11Z" | ||
|
||
package() { | ||
install -D -m 755 -t "$pkgdir"/opt/lib "$srcdir"/release/opt/lib/libsentry.so | ||
|