summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d528110aa288abbe2ae0dfe4dc7e8c688cc652c (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
# Maintainer: Marco Wang <m.aesophor@gmail.com>

pkgname=wmderland-git
_pkgname=wmderland
pkgver=1.0.4
pkgrel=2
pkgdesc='X11 tiling window manager using space partitioning trees'
arch=('x86_64')
url="https://github.com/aesophor/wmderland"
license=('MIT')
depends=('libx11')
makedepends=('gcc>=6.0' 'cmake>=3.9')
install=${_pkgname}.install
source=('git://github.com/aesophor/wmderland.git')
sha256sums=('SKIP')

build() {
  cd ${_pkgname}/
  ./build.sh
}

package() {
  # Install wmderland.
  cd ${_pkgname}/build/
  make DESTDIR="${pkgdir}/" PREFIX="/usr/" install

  # Install wmderlandc (ipc client).
  cd ../ipc-client/build/
  make DESTDIR="${pkgdir}/" PREFIX="/usr/" install

  # Install example config file.
  cd ../../
  mkdir -p "${pkgdir}/etc/xdg/wmderland/"
  mkdir -p "${pkgdir}/usr/share/xsessions/"
  install -D -m644 example/config "${pkgdir}/etc/xdg/wmderland/"
  install -D -m644 example/wmderland.desktop "${pkgdir}/usr/share/xsessions/"
}