summaryrefslogtreecommitdiff
path: root/sway/Pkgfile
blob: e5f13919238fd1d3f162cad68b8e3aa9f9d2e551 (plain)
    1 # Description: An i3-compatible wayland compositor.
    2 # URL: https://swaywm.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: basu json-c pango wlroots xorg-libevdev
    5 # Optional: gdk-pixbuf scdoc seatd
    6 
    7 name=sway
    8 version=1.8
    9 release=2
   10 source=(https://github.com/swaywm/sway/archive/$version/$name-$version.tar.gz
   11   6249.patch)
   12 
   13 build() {
   14   patch -Np1 -d $name-$version -i $SRC/6249.patch
   15 
   16   prt-get isinst bash-completion || PKGMK_SWAY+=' -D bash-completions=false'
   17   prt-get isinst zsh || PKGMK_SWAY+=' -D zsh-completions=false'
   18   prt-get isinst xorg-xwayland && PKGMK_SWAY+=' -D xwayland=enabled' || PKGMK_SWAY+=' -D xwayland=disabled'
   19 
   20   meson setup $name-$version build $PKGMK_SWAY \
   21     --prefix=/usr \
   22     --buildtype=plain \
   23     --wrap-mode nodownload \
   24     -D b_lto=true \
   25     -D b_pie=true \
   26     -D tray=enabled \
   27     -D sd-bus-provider=basu \
   28     -D fish-completions=false \
   29     -D werror=false
   30   meson compile -C build
   31   DESTDIR=$PKG meson install -C build
   32 
   33   # needs CONFIG_*_FS_SECURITY to work
   34   # https://github.com/swaywm/sway/pull/6994
   35   setcap 'cap_sys_nice=eip' $PKG/usr/bin/sway || true
   36 }

Generated by cgit