summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a51f986cd1f40fb3d07a863d2cf6a0705924f96b (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
42
43
# Maintainer: Sajeev Ramasamy <thorion3006 [at] gmail [dot] com>

pkgname=rofi-lbonn-wayland-only-git
pkgver=1.7.5.wayland1.r37.ge861df39
pkgrel=1
pkgdesc='A window switcher, application launcher and dmenu replacement with only wayland support'
arch=('x86_64')
url='https://github.com/lbonn/rofi'
license=(MIT)
depends=('pango' 'pangomm' 'cairomm' 'glibmm' 'gdk-pixbuf2' 'librsvg' 'libxdg-basedir' 'startup-notification' 'wayland')
makedepends=('git' 'meson' 'wayland-protocols' 'check')
provides=('rofi')
conflicts=('rofi')
source=("$pkgname::git+$url.git#branch=wayland")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long | sed 's/\([^-]*-g\)/r\1/;s/[-+]/./g'
}

prepare() {
  git -C $pkgname submodule update --init
}

build() {
  local meson_options=(-Dwayland=enabled -Dcheck=disabled -Dxcb=disabled)

  arch-meson $pkgname build "${meson_options[@]}"
  meson compile -C build
}

check() {
  LC_ALL=C meson test -C build
}

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

  install -Dm644 $pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
  install -Dm755 $pkgname/Examples/*.sh -t "$pkgdir/usr/share/doc/rofi/examples/"
}