7990b32dd2
* Create AUR_publish.yml * Added PKGBUILD * Switched AUR publish addon * Added arch-build action * Remove useless step in arch-build * Checkout latest tag instead of master for Arch and Fedora publish actions * Added -git PKGBUILD and added wlroots < 0.16 as dependency * Checkout master before running swayfx-git aur script * Check build for stable PKGBUILD after -git version * Removed spaces in wlroots depends version
79 lines
1.8 KiB
Bash
79 lines
1.8 KiB
Bash
# Maintainer: Erik Reider <erik.reider@protonmail.com>
|
|
_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
|
|
}
|