summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e2e67f708cd8e8b433bd8a58e1acdef60343159 (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
# Maintainer: Dwi Asmoro Bangun <dwiaceromo@gmail.com>
_pkgname=cwc
pkgname="$_pkgname-git"
pkgver=r52.26f18a7
pkgrel=1
pkgdesc='Extensible Wayland compositor with dynamic window management'
arch=('x86_64')
url="https://github.com/Cudiph/cwcwm"
license=('GPL-3.0-or-later')
depends=(
  'cairo'
  'gdk-pixbuf2'
  'glib2'
  'glibc'
  'hyprcursor'
  'libdrm'
  'libinput'
  'libwlroots-0.19.so'
  'libxcb'
  'libxkbcommon'
  'luajit-lgi'
  'luajit'
  'pango'
  'wayland'
  'xorg-xwayland'
  'xxhash'
)
makedepends=(
  'git'
  'ldoc'
  'make'
  'meson'
  'ninja'
  'wayland-protocols'
)
optdepends=(
  'brightnessctl: Default brightness controller in the configuration'
  'copyq: Default clipboard manager'
  'rofi-wayland: Default application launcher'
  'playerctl: Default media player controller'
  'swaybg: Default wallpaper'
  'swayidle: Default idle daemon'
  'waybar: Default bar'
  'wlopm: Default output power controller'
  'xdg-desktop-portal-gtk: Default portal for file picker'
  'xdg-desktop-portal-wlr: Portal for screen sharing'
)
provides=('wayland-compositor')
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
  cd "$_pkgname" || exit 1
  make all-debugrelease docs
}

package() {
  cd "$_pkgname" || exit 1
  DESTDIR="$pkgdir" make install
}