summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99e6334740d69e5deec676eb1bdfb9cfc3d6be7b (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
# Maintainer: Niclas Meyer <niclas at countingsort dot com>

pkgname=kiwmi-git
pkgver=r208.e0142de
pkgrel=1
pkgdesc="A fully manual tiling Wayland compositor"
arch=('i686' 'x86_64')
url="https://github.com/buffet/kiwmi"
license=('MPL')
depends=('luajit' 'wlroots')
makedepends=('git' 'meson' 'ninja')
conflicts=('kiwmi')
provides=('kiwmi')
source=("${pkgname}::git+https://github.com/buffet/kiwmi.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  meson --prefix /usr --buildtype release -Dlua-pkg=luajit build
  ninja -C build
}

package() {
  cd "${srcdir}/${pkgname}"
  DESTDIR="${pkgdir}" ninja -C build install
}