summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48361cb0bf13ebbf815ae85f9618b1edeb1f2a5a (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
# Maintainer: Coraline Shuryn <coraline.shuryn@gmail.com>
pkgname=wayback-x11-git
_pkgname=wayback
pkgver=r121.a99951a
pkgrel=1
pkgdesc="An experimental X compatibility layer for Wayland. (git version)"
arch=('x86_64')
url="https://wayback.freedesktop.org/"
license=('MIT')
depends=('wayland' 'libxkbcommon' 'wlroots0.19' 'glibc' 'xorg-xwayland' 'scdoc')
makedepends=('git' 'meson' 'wayland-protocols')
conflicts=('wayback-x11')
provides=('wayback-x11')
source=("git+https://gitlab.freedesktop.org/wayback/wayback.git")
sha256sums=('SKIP')

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

build() {
  cd "$_pkgname"
  meson setup _build -Dprefix=/usr -Dlibexecdir="lib/$_pkgname"
  cd _build
  meson compile
}

package() {
  cd "$_pkgname/_build"
  meson install --destdir "$pkgdir"
  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}