PKGBUILD 952 B raw
1
# Maintainer: Alexis Sellier <self@cloudhead.io>
2
3
pkgname=swm
4
pkgver=1.0.0
5
pkgrel=1
6
pkgdesc='Simple window manager for Wayland'
7
arch=('x86_64')
8
url='https://github.com/cloudhead/swm'
9
license=('GPL-3.0-only')
10
options=('!debug')
11
backup=('usr/share/wayland-sessions/swm.desktop')
12
depends=(
13
  'glibc'
14
  'libinput'
15
  'libnotify'
16
  'libxcb'
17
  'libxkbcommon'
18
  'wayland'
19
  'wlroots0.20'
20
  'xcb-util-wm'
21
)
22
optdepends=('xorg-xwayland: X11 application support')
23
makedepends=(
24
  'asciidoctor'
25
  'clang'
26
  'lld'
27
  'wayland-protocols'
28
)
29
source=()
30
b2sums=()
31
32
prepare() {
33
  cp "${startdir}"/{Makefile,config.mk,swm.c,swm.h,swmctl.c,util.c,util.h} \
34
    "${srcdir}/"
35
  cp "${startdir}"/{config.def.h,swm.1.adoc,swmctl.1.adoc,swm.desktop} \
36
    "${srcdir}/"
37
  install -d "${srcdir}/protocols"
38
  cp "${startdir}"/protocols/*.xml "${srcdir}/protocols/"
39
}
40
41
build() {
42
  cd "${srcdir}"
43
  make
44
}
45
46
package() {
47
  cd "${srcdir}"
48
  make DESTDIR="${pkgdir}" PREFIX=/usr install
49
}