summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa6c7b3746b3925b46c32481c3420897deaa1089 (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: Sung Mingi <FiestaLake@protonmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gnome-calculator-git
_pkgname=gnome-calculator
pkgver=43.rc
pkgrel=1
pkgdesc="GNOME Scientific calculator - git"
url="https://wiki.gnome.org/Apps/Calculator"
arch=(x86_64 i686 aarch64 armv7h)
license=(GPL)
depends=(libadwaita-git dconf gtksourceview5 mpfr libsoup libmpc libgee)
makedepends=(yelp-tools vala git meson gobject-introspection)
groups=(gnome)
provides=(gnome-calculator)
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"
}