summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8df63bc5b4d1fbab65d71be37dbcb976a510bee (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Mingi Sung <me@saltyming.pe.kr>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gnome-calculator-git
_pkgname=gnome-calculator
pkgver=46.0+r18+g59fc6172
pkgrel=1
pkgdesc="GNOME Scientific calculator - git"
url="https://wiki.gnome.org/Apps/Calculator"
arch=(
  x86_64
  i686
  aarch64
  armv7h
)
license=(GPL-3.0-or-later)
depends=(
  dconf
  glib2
  glibc
  gtk4
  gtksourceview5
  hicolor-icon-theme
  libadwaita-git
  libgee
  libmpc
  libsoup3
  libxml2
  mpfr
)
makedepends=(
  git
  gobject-introspection
  meson
  vala
  yelp-tools
)
provides=(
  gnome-calculator
  libgcalc-2.so
  libgci-1.so
)
conflicts=(gnome-calculator)
# options=(debug)
source=("git+https://gitlab.gnome.org/GNOME/gnome-calculator.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

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

check() {
  meson test -C build --print-errorlogs
}

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