# Maintainer: Vincent Grande # Contributor: Drew DeVault # Contributor: Antonin Décimo pkgname=sway-nosystemd-minimal-git _pkgname=sway-nosystemd-minimal pkgver=r6506.1be66c98 pkgrel=1 license=("MIT") pkgdesc="Tiling Wayland compositor and replacement for the i3 window manager" makedepends=( "git" "meson" "ninja" # "scdoc" "wayland-protocols" ) depends=( "cairo" # "gdk-pixbuf2" "json-c" "pango" "pcre" "swaybg-git" "ttf-font" "wlroots-git" "xorg-server-xwayland" ) optdepends=( "alacritty: Terminal emulator used by the default config" "dmenu: Application launcher" "grim: Screenshot utility" "i3status: Status line" "mako: Lightweight notification daemon" "polkit: polkit support" "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://swaywm.org" source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git") sha512sums=("SKIP") provides=("sway") conflicts=("sway") #options=(debug) pkgver() { cd "$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$_pkgname" meson \ -Dwerror=false \ -Dtray=disabled \ -Dgdk-pixbuf=disabled \ -Dman-pages=disabled \ --prefix /usr \ "$srcdir/build" ninja $NINJAFLAGS -C "$srcdir/build" } package() { cd "$_pkgname" DESTDIR="$pkgdir" ninja $NINJAFLAGS -C "$srcdir/build" install 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 } post_upgrade() { echo "Make sure to upgrade wlroots-nosystemd-minimal-git and sway-nosystemd-minimal-git together." echo "Upgrading one but not the other is unsupported." }