diff options
Diffstat (limited to 'build-scripts')
-rw-r--r-- | build-scripts/aur-git/50-systemd-user.conf | 7 | ||||
-rw-r--r-- | build-scripts/aur-git/PKGBUILD | 78 | ||||
-rw-r--r-- | build-scripts/aur-git/sway.install | 31 | ||||
-rw-r--r-- | build-scripts/aur/50-systemd-user.conf | 7 | ||||
-rw-r--r-- | build-scripts/aur/PKGBUILD | 73 | ||||
-rw-r--r-- | build-scripts/aur/sway.install | 31 |
6 files changed, 227 insertions, 0 deletions
diff --git a/build-scripts/aur-git/50-systemd-user.conf b/build-scripts/aur-git/50-systemd-user.conf new file mode 100644 index 00000000..d75ccdb2 --- /dev/null +++ b/build-scripts/aur-git/50-systemd-user.conf @@ -0,0 +1,7 @@ +# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment +# See FS#63021 +# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal. + +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP diff --git a/build-scripts/aur-git/PKGBUILD b/build-scripts/aur-git/PKGBUILD new file mode 100644 index 00000000..1b153338 --- /dev/null +++ b/build-scripts/aur-git/PKGBUILD @@ -0,0 +1,78 @@ +# Maintainer: Erik Reider <[email protected]> +_pkgname=swayfx +pkgname="$_pkgname-git" +pkgver=r6905.e2ef3ceb +pkgrel=1 +license=("MIT") +pkgdesc="SwayFX: Sway, but with eye candy!" +makedepends=( + "git" + "meson" + "scdoc" + "wayland-protocols" +) +depends=( + "cairo" + "gdk-pixbuf2" + "libevdev.so" + "libinput" + "libjson-c.so" + "libudev.so" + "libwayland-server.so" + "libwlroots.so" + "libxcb" + "libxkbcommon.so" + "pango" + "pcre" + "ttf-font" + "wlroots<0.16" +) +optdepends=( + "alacritty: Terminal emulator used by the default config" + "dmenu: Application launcher" + "grim: Screenshot utility" + "i3status: Status line" + "mako: Lightweight notification daemon" + "slurp: Select a region" + "swayidle: Idle management daemon" + "swaylock: Screen locker" + "wallutils: Timed wallpapers" + "waybar: Highly customizable bar" +) +backup=(etc/sway/config) +arch=("i686" "x86_64") +url="https://github.com/WillPower3309/swayfx" +source=("${pkgname%-*}::git+${url}.git" + 50-systemd-user.conf) +sha512sums=( + "SKIP" + "c2b7d808f4231f318e03789015624fd4cf32b81434b15406570b4e144c0defc54e216d881447e6fd9fc18d7da608cccb61c32e0e1fab2f1fe2750acf812d3137") +provides=("sway" "swayfx") +conflicts=("sway" "swayfx") +options=(debug) +install=sway.install + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + arch-meson \ + -Dsd-bus-provider=libsystemd \ + -Dwerror=false \ + "$_pkgname" build + meson compile -C build +} + +package() { + install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/" + + DESTDIR="$pkgdir" meson install -C build + + cd "$_pkgname" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do + install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts" + done +} diff --git a/build-scripts/aur-git/sway.install b/build-scripts/aur-git/sway.install new file mode 100644 index 00000000..ef4fe013 --- /dev/null +++ b/build-scripts/aur-git/sway.install @@ -0,0 +1,31 @@ +post_install() { +cat << EOD +Sway requires additional setup for privilege escalation. Without this setup, +sway will fail to start with session activation permission failures. Choose one +of the two available options (In alphabetical, not recommended, order): + +1. polkit: This will make sway "just work" right after installation but may be + a weightier solution than desired. + +2. seatd: Already required as a sway dependency, this is a lighter-weight + solution but requires some user configuration: Enabling the service, + adding your user to the "seat" group, then logging out/in again. + +Either option should provide the same functionality/stability. Refer to the +Sway wiki page for information. +EOD +} + +post_upgrade() { +cat << EOD +Sway's necessary privileges can now be obtained through seatd as well as the +incumbent polkit package. As such, polkit has been relegated to an optional +dependency. + +Note that using seatd instead of polkit means that a user must be a part of the +"seat" group: Otherwise, the user will not be able to achieve the appropriate +privileged actions. + +For more information, refer to the Sway wiki page. +EOD +} diff --git a/build-scripts/aur/50-systemd-user.conf b/build-scripts/aur/50-systemd-user.conf new file mode 100644 index 00000000..d75ccdb2 --- /dev/null +++ b/build-scripts/aur/50-systemd-user.conf @@ -0,0 +1,7 @@ +# sway does not set DISPLAY/WAYLAND_DISPLAY in the systemd user environment +# See FS#63021 +# Adapted from xorg's 50-systemd-user.sh, which achieves a similar goal. + +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP +exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP diff --git a/build-scripts/aur/PKGBUILD b/build-scripts/aur/PKGBUILD new file mode 100644 index 00000000..bf8ae551 --- /dev/null +++ b/build-scripts/aur/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Erik Reider <[email protected]> +_pkgname=swayfx +pkgname="$_pkgname" +pkgver=0.1 +pkgrel=1 +license=("MIT") +pkgdesc="SwayFX: Sway, but with eye candy!" +makedepends=( + "git" + "meson" + "scdoc" + "wayland-protocols" +) +depends=( + "cairo" + "gdk-pixbuf2" + "libevdev.so" + "libinput" + "libjson-c.so" + "libudev.so" + "libwayland-server.so" + "libwlroots.so" + "libxcb" + "libxkbcommon.so" + "pango" + "pcre" + "ttf-font" + "wlroots<0.16" +) +optdepends=( + "alacritty: Terminal emulator used by the default config" + "dmenu: Application launcher" + "grim: Screenshot utility" + "i3status: Status line" + "mako: Lightweight notification daemon" + "slurp: Select a region" + "swayidle: Idle management daemon" + "swaylock: Screen locker" + "wallutils: Timed wallpapers" + "waybar: Highly customizable bar" +) +backup=(etc/sway/config) +arch=("i686" "x86_64") +url="https://github.com/WillPower3309/swayfx" +source=("${url}/releases/download/$pkgver/swayfx-$pkgver.tar.gz" + 50-systemd-user.conf) +sha512sums=( + "SKIP" + "c2b7d808f4231f318e03789015624fd4cf32b81434b15406570b4e144c0defc54e216d881447e6fd9fc18d7da608cccb61c32e0e1fab2f1fe2750acf812d3137") +provides=("sway" "swayfx") +conflicts=("sway" "swayfx") +options=(debug) +install=sway.install + +build() { + arch-meson \ + -Dsd-bus-provider=libsystemd \ + -Dwerror=false \ + "$_pkgname" build + meson compile -C build +} + +package() { + install -Dm644 50-systemd-user.conf -t "$pkgdir/etc/sway/config.d/" + + DESTDIR="$pkgdir" meson install -C build + + cd "$_pkgname" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + for util in autoname-workspaces.py inactive-windows-transparency.py grimshot; do + install -Dm755 "contrib/$util" -t "$pkgdir/usr/share/$pkgname/scripts" + done +} diff --git a/build-scripts/aur/sway.install b/build-scripts/aur/sway.install new file mode 100644 index 00000000..ef4fe013 --- /dev/null +++ b/build-scripts/aur/sway.install @@ -0,0 +1,31 @@ +post_install() { +cat << EOD +Sway requires additional setup for privilege escalation. Without this setup, +sway will fail to start with session activation permission failures. Choose one +of the two available options (In alphabetical, not recommended, order): + +1. polkit: This will make sway "just work" right after installation but may be + a weightier solution than desired. + +2. seatd: Already required as a sway dependency, this is a lighter-weight + solution but requires some user configuration: Enabling the service, + adding your user to the "seat" group, then logging out/in again. + +Either option should provide the same functionality/stability. Refer to the +Sway wiki page for information. +EOD +} + +post_upgrade() { +cat << EOD +Sway's necessary privileges can now be obtained through seatd as well as the +incumbent polkit package. As such, polkit has been relegated to an optional +dependency. + +Note that using seatd instead of polkit means that a user must be a part of the +"seat" group: Otherwise, the user will not be able to achieve the appropriate +privileged actions. + +For more information, refer to the Sway wiki page. +EOD +} |