|
| 1 | +# Maintainer: Solomon Choina <shlomochoina@gmail.com> |
| 2 | +# Co-Maintainer: Frank Tao <frank.tao@uwaterloo.ca> |
| 3 | +pkgname=wayfire-git |
| 4 | +pkgver=0.9.0.r91.g576894e5 |
| 5 | +pkgrel=1 |
| 6 | +pkgdesc="3D wayland compositor" |
| 7 | +arch=('x86_64' 'aarch64') |
| 8 | +url="https://github.com/WayfireWM/wayfire" |
| 9 | +license=('MIT') |
| 10 | +depends=('cairo' 'pango' 'freetype2' 'glm' |
| 11 | + 'libdrm' 'libevdev' 'libglvnd' 'libinput' 'libjpeg' |
| 12 | + 'libpng' 'libxkbcommon' 'libxml2' 'pixman' 'polkit' |
| 13 | + 'pkgconf' 'seatd' 'xcb-util-errors' 'xcb-util-renderutil' |
| 14 | + 'xcb-util-wm' 'xorg-xwayland' 'wayland' 'wayland-protocols' 'libdisplay-info' 'libvulkan.so' 'liblcms2.so' |
| 15 | + 'libliftoff' 'yyjson') |
| 16 | +makedepends=('git' 'glslang' 'meson' 'ninja' 'cmake' 'vulkan-headers' 'doctest') |
| 17 | +optdepends=('xorg-xeyes') |
| 18 | +provides=("${pkgname%-git}" 'wlroots' 'wf-config' 'libwlroots.so') |
| 19 | +#conflicts=("$pkgname" 'wlroots-git' 'wlroots' 'wf-config-git' 'wf-config') |
| 20 | +replaces=() |
| 21 | +options=() |
| 22 | + |
| 23 | +source=('git+https://github.com/WayfireWM/wayfire') |
| 24 | +sha256sums=('SKIP') |
| 25 | + |
| 26 | +pkgver() { |
| 27 | + cd "$srcdir/wayfire" |
| 28 | + tag=$(git tag -l | awk '/^[0-9.]+$/ {print $0} /^v{1}[0-9.]+$/ {print substr($0,2)}'|sort -n|tail -n1) |
| 29 | + printf "$tag.r%s.g%s" "$(git rev-list --count v${tag}..HEAD)" "$(git rev-parse --short HEAD)" |
| 30 | +} |
| 31 | + |
| 32 | +build() { |
| 33 | + cd "$srcdir/wayfire/" |
| 34 | + arch-meson \ |
| 35 | + --buildtype=release \ |
| 36 | + -Dxwayland=auto \ |
| 37 | + -Duse_system_wlroots=disabled \ |
| 38 | + -Duse_system_wfconfig=disabled \ |
| 39 | + -Db_lto=true \ |
| 40 | + -Db_pie=true \ |
| 41 | + build |
| 42 | + ninja -C build |
| 43 | + sed "/WF_SRC_DIR/d" -i build/config.h |
| 44 | +} |
| 45 | + |
| 46 | + |
| 47 | +package() { |
| 48 | + cd "$srcdir/wayfire" |
| 49 | + DESTDIR="$pkgdir/" ninja -C build install |
| 50 | + install -Dm644 wayfire.desktop $pkgdir/usr/share/wayland-sessions/wayfire.desktop |
| 51 | + cp wayfire.ini $pkgdir/usr/share |
| 52 | +} |
0 commit comments