summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb4e6c87cb319a15ef768cd6893f316465f9d9d2 (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
# Maintainer: Gennadiy Mykhailiuta <gmykhailiuta@gmail.com>

pkgname=wlrctl-git
pkgver=r24.1bce5aa
pkgrel=1
pkgdesc='Utility for miscellaneous wlroots extensions'
url='https://git.sr.ht/~brocellous/wlrctl'
arch=('x86_64')
license=('MIT')
depends=('wayland' 'libxkbcommon')
provides=('wlrctl')
makedepends=('scdoc' 'meson' 'ninja')
source=("${pkgname}::git+https://git.sr.ht/~brocellous/wlrctl")
sha1sums=('SKIP')

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

prepare() {
    cd "${srcdir}/${pkgname}"
}

build() {
    cd "${srcdir}/${pkgname}"
    rm -rf "${srcdir}/build"
    meson -Dwerror=false --prefix /usr "$srcdir/build"
    ninja -C "$srcdir/build"
}

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