summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a41ae89dd611515cbe14f6755c6f0f5e3fbf99a (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
# -*- mode: pkgbuild; -*-
# Maintainer: Denis Zheleztsov <difrex.punk@gmail.com>
pkgname=wlr-randr-git
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')
makedepends=("meson" "ninja")
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: