summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60e730481fa35e74402c1fb50fbb813fafc82d74 (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
# Maintainer: f0x <aur at cthu dot lu>

pkgname=hikari-darcs
pkgver=1.1.0.20200502185221
pkgrel=1
epoch=1
pkgdesc='Stacking Wayland compositor with additional tiling capabilities, heavily inspired by the Calm Window manager (cwm)'
url='https://hikari.acmelabs.space'
license=('BSD-2-Clause')
arch=('x86_64')
makedepends=('darcs' 'bmake' 'pandoc')
depends=('wlroots' 'cairo' 'pango' 'xorg-server-xwayland' 'libucl-git')
provides=('hikari')
conflicts=('hikari')
source=()

_darcsmod="hikari"
_darcstrunk="https://hub.darcs.net/raichoo"

prepare() {
  cd ${srcdir}
  if [[ -d ${srcdir}/$_darcsmod/_darcs ]]
  then
    msg "Retrieving missing patches"
    cd $_darcsmod
    darcs pull -a $_darcstrunk/$_darcsmod
  else
    msg "Retrieving complete sources"
    darcs get --set-scripts-executable $_darcstrunk/$_darcsmod
    cd $_darcsmod
  fi
}

pkgver() {
  cd ${srcdir}/$_darcsmod
  lastver=$(darcs show tags | head -n1)
  timestamp=$(darcs log -n 1 --xml-output | grep -oP "(?<=date=')\d+")
  echo $lastver.$timestamp
}

build() {
  cd "$srcdir/$_darcsmod"
  bmake PREFIX=/usr ETC_PREFIX='' WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES
}

package() {
  cd "$srcdir/$_darcsmod"
  bmake PREFIX="${pkgdir}"/usr ETC_PREFIX="${pkgdir}" install
}