summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc66f4462a60ffe97f84be8bfee55086ae681121 (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
# vim:ts=2:sw=2:expandtab
# Maintainer: peelz <peelz.dev+arch@gmail.com>

_commit="9c02a4368326cadc423d2cecacf74e60914f967a"
pkgname="wlclipblock"
pkgver="0.1.4"
pkgrel="1"
pkgdesc="A hack to prevent Wayland compositors from advertising support for the primary clipboard"
url="https://github.com/notpeelz/wlclipblock"
arch=("x86_64")
license=("LGPL-3.0-or-later")
depends=("glibc")
makedepends=(
  "git"
  "meson"
  "cmake"
  "wayland-protocols"
  "wayland"
)
source=(
  "${pkgname}::git+https://github.com/notpeelz/wlclipblock.git#commit=${_commit}"
)
sha256sums=(
  "SKIP"
)
install="${pkgname}.install"

prepare() {
  cd "${srcdir}/${pkgname}"
  git submodule init
  git -c protocol.file.allow=always submodule update
}

build() {
  cd "${srcdir}/${pkgname}"
  arch-meson build
  meson compile -C build
}

package() {
  cd "${srcdir}/${pkgname}"
  meson install -C build --destdir "${pkgdir}"
}