ptrcports/sway-git/APKBUILD

106 lines
2.5 KiB
Text
Raw Normal View History

2023-07-16 12:07:25 +00:00
# Maintainer: psykose <alice@ayaya.dev>
pkgname=sway-git
pkgver=1.8.1_git20230731
2023-07-16 12:07:25 +00:00
pkgrel=0
_gitrev=eebbecc7801ea520dd5644b08e884fbe27c2eeda
_wlroots=d40bcfe2c18f057f4bc324a81230f6ba2267db44
2023-07-16 12:07:25 +00:00
pkgdesc="i3-compatible window manager for Wayland"
url="https://swaywm.org/"
license="MIT"
2023-07-16 12:08:47 +00:00
arch="x86_64 aarch64"
2023-07-16 12:07:25 +00:00
makedepends="
basu-dev
cairo-dev
eudev-dev
gdk-pixbuf-dev
hwdata-dev
json-c-dev
libcap-utils
libdisplay-info-dev
libdrm-dev
libevdev-dev
libinput-dev
libliftoff-dev
libseat-dev
libxkbcommon-dev
linux-pam-dev
mesa-dev
meson
pango-dev
pcre2-dev
scdoc
vulkan-loader-dev
wayland-dev
wayland-protocols
xcb-util-renderutil-dev
xcb-util-wm-dev
xwayland-dev
"
subpackages="
$pkgname-dbg
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
source="$pkgname-$_gitrev.tar.gz::https://github.com/swaywm/sway/archive/$_gitrev.tar.gz
wlroots-$_wlroots.tar.gz::https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/$_wlroots.tar.gz
sway-git.desktop
"
builddir="$srcdir/sway-$_gitrev"
options="net setcap !check"
provides="sway-virtual"
provider_priority=10
replaces="sway"
prepare() {
default_prepare
mkdir -p subprojects
ln -sfv "$srcdir"/wlroots-$_wlroots subprojects/wlroots
sed -i \
-e '/werror=true/d' \
"$srcdir"/wlroots-$_wlroots/meson.build
}
build() {
CFLAGS="$CFLAGS -O2" \
abuild-meson \
--default-library static \
-Db_lto=true \
-Db_ndebug=true \
-Dsd-bus-provider=basu \
-Dswaybar=true \
-Dswaynag=true \
-Dman-pages=enabled \
-Dgdk-pixbuf=enabled \
-Dtray=enabled \
-Dxwayland=enabled \
. output
meson compile -C output
}
package() {
DESTDIR="$pkgdir" meson install \
--no-rebuild \
--skip-subprojects wlroots \
-C output
2023-07-16 12:07:25 +00:00
cd "$pkgdir"
rm -r usr/share/backgrounds
2023-07-16 12:07:25 +00:00
# for setting SCHED_RR scheduling policy
# before starting the Wayland server
setcap cap_sys_nice=+ep usr/bin/sway
install -Dm644 "$srcdir"/sway-git.desktop \
-t "$pkgdir"/usr/share/wayland-sessions/
}
sha512sums="
0fceae354e165a340ed82bbedd85ea2ff64688838dae30c5d4c820a5981361902e5d622bba84fc91eb68f092ea699f6d77a59cd785d2197bb7ffae62887c2856 sway-git-eebbecc7801ea520dd5644b08e884fbe27c2eeda.tar.gz
979ee18058e2d4522c1b25bfd8478d47d8a97574f482be31b76ec5502b0c4c396b73600505a2b4d4f0fa67558acbedc12b6aee584f145595a2bd082044ad876c wlroots-d40bcfe2c18f057f4bc324a81230f6ba2267db44.tar.gz
2023-07-16 12:07:25 +00:00
d3f3b0393f730f57c1c1e557362c9a93d281d13e415165e2879560b6e414a6c74b160012d0c1ccb27a3b9d3fa219c35ec78178d7925d659c62a5d6af31b13c9c sway-git.desktop
"