# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=galculator
pkgver=2.1.4
pkgrel=4
pkgdesc="GTK+3 based scientific calculator"
url="http://galculator.mnim.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev flex bison intltool"
subpackages="$pkgname-doc $pkgname-lang"
source="http://galculator.mnim.org/downloads/galculator-$pkgver.tar.bz2
	gcc-10.patch
	"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make appdatadir=/usr/share/metainfo DESTDIR="$pkgdir" install
}

sha512sums="
ca5f373649d9bf26184e94ba6a501610efbb13e92a8723cda78b83aa495519e82e5b4fcd17f00f615eb702ed186598aecc70ae63a8238c32384b7f608cba4cfa  galculator-2.1.4.tar.bz2
89436f3308c5a81a014105886b4823ef108c95b61c6cde14391128ff9e3f0acab54173a103d9f8afce74e026755566cd32daaf718e052ae840d92a3186c0dc66  gcc-10.patch
"
