summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2f03de9ea1f7b06b9069f75764faf756697cc0b (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
# Maintainer: Campbell Jones <arch at serebit dot com>

pkgname=magpie-wm-v1-git
_pkgname=magpie
pkgver=r195.7d761f6
pkgrel=1
pkgdesc="Budgie's in-development Wayland compositor - latest git"
arch=("x86_64" "armv7h" "aarch64")
url="https://github.com/BuddiesOfBudgie/$_pkgname/tree/v1"
license=("Apache-2.0")
depends=("libxcb" "libxkbcommon" "wlroots" "wayland" "xorg-xwayland")
makedepends=("argparse" "git" "meson" "wayland-protocols")
source=("$_pkgname"::"git+https://github.com/BuddiesOfBudgie/${_pkgname}.git#branch=v1")
b2sums=("SKIP")

pkgver() {
    cd "$_pkgname"
    # revision number is commit count since first commit in branch
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
    arch-meson "$_pkgname" build
    meson compile -C build
}

package() {
    meson install -C build --destdir "$pkgdir"
}