summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecd7fa28000e9e107d8132f886082d8ebe3b032c (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
# Maintainer: Philip Goto <philip.goto@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gnome-calculator-git
pkgver=3.36.0.r15.ge71e03f3
pkgrel=1
pkgdesc="GNOME Scientific calculator"
url="https://wiki.gnome.org/Apps/Calculator"
arch=(i686 x86_64 armv7h aarch64)
license=(GPL)
depends=(gtksourceview4 libmpc libgee) 
makedepends=(yelp-tools vala git appstream-glib meson)
provides=(gnome-calculator)
conflicts=(gnome-calculator)
groups=(gnome)
source=("git+https://gitlab.gnome.org/GNOME/gnome-calculator.git")
sha256sums=('SKIP')

pkgver() {
  cd gnome-calculator
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson gnome-calculator build
  ninja -C build
}

check() {
  ninja -C build test
}

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