diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ec7f04527185 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = gnome-calculator-git + pkgdesc = GNOME Scientific calculator + pkgver = 3.31.3.r3.gaf52f787 + pkgrel = 1 + url = https://wiki.gnome.org/Apps/Calculator + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + groups = gnome + license = GPL + makedepends = yelp-tools + makedepends = vala + makedepends = git + makedepends = appstream-glib + makedepends = meson + depends = gtksourceview4 + depends = libmpc + provides = gnome-calculator + conflicts = gnome-calculator + options = !emptydirs + source = git+https://gitlab.gnome.org/GNOME/gnome-calculator.git + sha256sums = SKIP + +pkgname = gnome-calculator-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e1a9354e5a46 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# 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.31.3.r3.gaf52f787 +pkgrel=1 +pkgdesc="GNOME Scientific calculator" +url="https://wiki.gnome.org/Apps/Calculator" +arch=(i686 x86_64 armv6h armv7h) +license=(GPL) +depends=(gtksourceview4 libmpc) +makedepends=(yelp-tools vala git appstream-glib meson) +provides=(gnome-calculator) +conflicts=(gnome-calculator) +groups=(gnome) +options=(!emptydirs) +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() { + meson test -C build +} + +package() { + DESTDIR="$pkgdir" meson install -C build +} |