summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a039bef3be1dc124839ceb148e12e751fb071b8 (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
# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
# Contributor: Davide Depau <davide@depau.eu>
_pkgname="obs-xdg-portal"
pkgname="${_pkgname}-git"
pkgver=0.1.2.r0.gfc5876a
pkgrel=2
pkgdesc="OBS Studio plugin using the Desktop portal for Wayland & X11 screencasting"
arch=(x86_64)
url="https://gitlab.gnome.org/feaneron/$_pkgname"
license=('GPL')
depends=('obs-studio' 'gst-plugins-base-libs' 'xdg-desktop-portal')
makedepends=('meson' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+$url"
        'fix-timestamp.patch')
sha256sums=('SKIP'
            'e7fd7d3455a4b73cf750328d47ea3667d576106207a784ab2ce62c99eeb48813')

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

prepare() {
  cd "$_pkgname"
  # https://gitlab.gnome.org/feaneron/obs-xdg-portal/-/merge_requests/4
  git apply "$srcdir/fix-timestamp.patch"
}

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

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