summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b28a1a862a9004d451136b6ad4e85cc5cc41fd9d (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
44
45
46
47
48
# Maintainer: tytan652	<tytan652 at tytanium dot xyz>
# Contributor: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=junction
pkgver=1.8
_commit=ff603d64620fb48ff6f0424ff9d5d1b184b881dc
pkgrel=2
pkgdesc="Application/browser chooser"
arch=('any')
url="https://github.com/sonnyp/Junction"
license=('GPL-3.0-or-later')
depends=(
  'glib2'
  'dconf'
  'hicolor-icon-theme'
  'gtk4'
  'libadwaita'
  'libportal'
  'libportal-gtk4'
  'gjs'
)
makedepends=('git' 'meson' 'python-gobject' 'blueprint-compiler')
#checkdepends=('appstream-glib')
source=(
  "${pkgname}::git+$url#commit=$_commit"
  'git+https://github.com/sonnyp/troll.git')
b2sums=('SKIP'
        'SKIP')

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

build() {
  arch-meson $pkgname build
  meson compile -C build
}

# Appstream data is made with Flathub fork of appstream-glib
#check() {
#  meson test -C build --print-errorlogs || :
#}

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