summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bac2da1007341118b1d089e774b5c0f5e0d7a5c7 (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: q234 rty <q23456yuiop at gmail dot com>

pkgname=permission-viewer-git
_pkgname=permission-viewer
pkgver=r11.ebb3704
pkgrel=1
pkgdesc='A quick application to display the Flatpak permission store'
arch=(x86_64)
url=https://github.com/matthiasclasen/permission-viewer
license=(LGPL-2.1-only)
depends=(
  gcc-libs
  glib2
  glibc
  gtk3
  xdg-desktop-portal
)
makedepends=(
  git
  glib2-devel
  meson
)
source=(git+$url.git)
b2sums=('SKIP')

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

prepare() {
  cd $_pkgname
  git cherry-pick -n ba45366f519c9913bb707b4f1026381e112cdb0b
}

build() {
  arch-meson $_pkgname build
  ninja -C build
}

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