aboutsummaryrefslogtreecommitdiff
path: root/labwc/Pkgfile
blob: 7c7d7490b72bbc0aa8b6442e9b58f8ba8005502a (plain) (blame)
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
# Description: A Wayland window-stacking compositor
# URL: https://github.com/labwc/labwc
# Maintainer: Jay Lanagan, j at lngn dot net
# Depends on: librsvg libsfdo wlroots scdoc
# Optional: xorg-wayland

name=labwc
version=0.20.2
release=1
source=(https://github.com/labwc/labwc/archive/$version/$name-$version.tar.gz)

build() {

  prt-get isinst xorg-xwayland && PKGMK_LABWC+='-Dxwayland=enabled ' || PKGMK_LABWC+=' -Dxwayland=disabled '

  meson setup $name-$version build $PKGMK_LABWC \
    --buildtype=release \
    --infodir=/usr/info \
    --libdir=/usr/lib \
    --localstatedir=/var \
    --prefix=/usr \
    --sysconfdir=/etc \
    -Dstrip=true \
    -Dnls=disabled \
    -Db_lto=true \
    -Db_pie=true

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

  mkdir $PKG/usr/share/labwc
  mv $PKG/usr/share/doc/* $PKG/usr/share
  rm $PKG/usr/share/labwc/README
  rmdir $PKG/usr/share/doc

}