blob: 4b3a2f9a5948f4b92d0068c847162d08f693210d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Christopher Snowhill <kode54@gmail.com>
# Contributor: Solomon Choina <shlomochoina@gmail.com>
# Contributor: Frank Tao <frank.tao@uwaterloo.ca>
_wlrootsver=0.18
pkgname=wayfire-hidpi-xprop-track-wlroots-git
pkgver=0.9.0.r11.gd7789661
pkgrel=1
pkgdesc="3D wayland compositor, integrating the wlroots hidpi-xprop patch set, currently tracking wlroots 0.18"
arch=('x86_64')
url="https://github.com/WayfireWM/wayfire"
license=('MIT')
depends=('cairo' 'pango' 'doctest' 'freetype2' 'glm' 'nlohmann-json'
'libdrm' 'libevdev' 'libglvnd' 'libinput' 'libjpeg'
'libpng' 'libxkbcommon' 'libxml2' 'pixman' 'polkit'
'pkgconf' 'seatd' 'xcb-util-errors' 'xcb-util-renderutil'
'xcb-util-wm' 'xorg-xwayland' 'wayland' 'wayland-protocols'
'libdisplay-info' 'wlroots-hidpi-xprop>=0.18'
'wlroots-hidpi-xprop<0.19' 'wf-config-git')
makedepends=('git' 'glslang' 'meson' 'ninja' 'cmake' 'vulkan-headers')
optdepends=('xorg-xeyes'
'xorg-xwayland-hidpi-xprop: High DPI scaling of Xwayland applications')
provides=("wayfire=$pkgver" "wayfire-git=$pkgver" "${pkgname%-git}")
conflicts=('wayfire')
replaces=()
options=()
source=('git+https://github.com/WayfireWM/wayfire#branch=track-wlroots'
'git+https://github.com/WayfireWM/wf-touch'
'git+https://github.com/WayfireWM/wf-utils.git')
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$srcdir/wayfire"
tag=$(git tag -l | awk '/^[0-9.]+$/ {print $0} /^v{1}[0-9.]+$/ {print substr($0,2)}'|sort -n|tail -n1)
printf "$tag.r%s.g%s" "$(git rev-list --count v${tag}..HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/wayfire/"
git submodule init
git config submodule.subprojects/wf-config.update none
git config submodule.subprojects/wlroots.update none
git config submodule.subprojects/wf-touch.url "$srcdir/wf-touch"
git config submodule.subprojects/wf-utils.url "$srcdir/wf-utils"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/wayfire/"
arch-meson \
--buildtype=release \
-Dxwayland=auto \
-Duse_system_wlroots=enabled \
-Duse_system_wfconfig=enabled \
-Db_lto=true \
-Db_pie=true \
-Dprint_trace=false \
build
sed "/WF_SRC_DIR/d" -i build/config.h
ninja -C build
}
package() {
cd "$srcdir/wayfire"
DESTDIR="$pkgdir/" ninja -C build install
install -Dm644 wayfire.desktop $pkgdir/usr/share/wayland-sessions/wayfire.desktop
cp wayfire.ini $pkgdir/usr/share
}
|