contrib/sway/Pkgfile

33 lines
987 B
Plaintext
Raw Normal View History

2021-09-19 19:44:47 +02:00
# Description: An i3-compatible wayland compositor.
# URL: https://swaywm.org/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: basu json-c pango wlroots xorg-libevdev
# Optional: gdk-pixbuf scdoc seatd
2021-09-19 19:44:47 +02:00
name=sway
2022-12-28 13:49:29 +01:00
version=1.8
release=1
2021-09-19 19:44:47 +02:00
source=(https://github.com/swaywm/sway/archive/$version/$name-$version.tar.gz
6249.patch)
build() {
patch -Np1 -d $name-$version -i $SRC/6249.patch
prt-get isinst bash-completion || PKGMK_SWAY+=' -D bash-completions=false'
prt-get isinst zsh || PKGMK_SWAY+=' -D zsh-completions=false'
2022-01-09 13:35:47 +01:00
prt-get isinst xorg-xwayland && PKGMK_SWAY+=' -D xwayland=enabled' || PKGMK_SWAY+=' -D xwayland=disabled'
2021-09-19 19:44:47 +02:00
meson setup $name-$version build $PKGMK_SWAY \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D tray=enabled \
-D sd-bus-provider=basu \
-D fish-completions=false \
-D werror=false
meson compile -C build
DESTDIR=$PKG meson install -C build
}