summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05475f45f5ab8c3485355f6f2f9e87b9b0902941 (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: Carlo Teubner <carlo@cteubner.net>
pkgname=wtype-git
pkgver=0.3.r2.gfb8cb52
pkgrel=1
pkgdesc="xdotool type for wayland"
arch=('x86_64')
url="https://github.com/atx/wtype"
license=('MIT')
depends=('wayland' 'libxkbcommon')
provides=('wtype')
conflicts=('wtype')
makedepends=('git' 'meson' 'jq')
source=("git+https://github.com/atx/wtype")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long --tags --match 'v*' | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
  cd "$srcdir/${pkgname%-git}"
  meson setup --prefix=/usr --buildtype=plain build/
  meson compile -C build/
}

package() {
  cd "$srcdir/${pkgname%-git}"
  mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
  cp LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  DESTDIR="$pkgdir/" meson install -C build/
}

# vim:set ts=2 sw=2 et: