# Contributor: macmpi <spam@ipik.org>
# Maintainer: macmpi <spam@ipik.org>
pkgname=x11-calc
pkgver=0.14.0154
pkgrel=0
pkgdesc="HP Calculator Simulator"
url="https://github.com/mike632t/x11-calc"
arch="all"
license="GPL-3.0-or-later"
makedepends="libx11-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/mike632t/x11-calc/archive/refs/tags/v$pkgver.tar.gz"
# does not have any tests
options="!check"
subpackages="$pkgname-prg:prg:noarch"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr DESKTOP=freedesktop install
}

prg() {
	pkgdesc="Sample calculators saves & programs for $pkgname"
	depends="$pkgname=$pkgver-r$pkgrel"

	amove usr/share/x11-calc/prg
}

sha512sums="
dc66e74729f28f066cce4e1657ccb2919b9279d99a48958d4e0f0bf67023ed25d14f0087576c1dc3823fb1661c3f2835a9c36e948a6cfd645b90614c6db15059  x11-calc-0.14.0154.tar.gz
"
