summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f8ff617fa38322d6719dcd7f290503964ff6066 (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
# -*- mode: pkgbuild; -*-
# Maintainer: Denis Zheleztsov <difrex.punk@gmail.com>
pkgname=wlr-randr-git
_pkgname=wlr-randr
pkgver=r13.c4066aa
pkgrel=1
pkgdesc="Utility to manage outputs of a Wayland compositor. You need a support wlr-output-management-unstable-v1 in the compositor."
arch=('x86_64')
url="https://github.com/emersion/wlr-randr"
license=('MIT')
depends=("wayland")
makedepends=("meson" "ninja" "gcc")
checkdepends=()
optdepends=()
provides=("wlr-randr")
source=("${pkgname%-*}::git+https://github.com/emersion/wlr-randr.git")
md5sums=('SKIP')

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

prepare() {
  cd "$_pkgname"
  meson --prefix /usr "$srcdir/build"
}

build() {
  cd "$srcdir/$_pkgname"

  ninja -C "$srcdir/build"
}

package() {
  cd "$srcdir/$_pkgname"

  DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
}

# vim:set ts=2 sw=2 et: