summaryrefslogtreecommitdiff
path: root/opt/sway/MAKEPKG
blob: 0dcc0c47935b22069b24a65138a83f9bca37dc38 (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
#!/bin/mkpkg
# description: i3-compatible Wayland compositor
# url: https://swaywm.org/

name=sway
version=1.12
release=1
depends=(cairo glib json-c libdrm libinput pcre2 libxkbcommon pango udevd wayland wlroots libevdev pixman)
makedeps=(scdoc)
source=(https://github.com/swaywm/sway/archive/$version/$name-$version.tar.gz)

sha256sums=(
    "29ca7caac960d13e02d8213418d91a5422c7c23102a283ceab944c57c5e1efcf"
)

build() {
    cd $name-$version

    meson setup build \
        --prefix=/usr \
        --buildtype=plain \
        --wrap-mode=nodownload \
        -D b_lto=true \
        -D b_pie=true \
        -D tray=disabled \
        -D bash-completions=false \
        -D zsh-completions=false \
        -D fish-completions=false \
        -D man-pages=enabled \
        -D werror=false

    meson compile -C build
    DESTDIR=$PKG meson install -C build
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh