# Contributor: Horst Burkhardt <horst@adelielinux.org>
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=xabacus
pkgver=8.5.1
pkgrel=0
pkgdesc="Simple X11 abacus widget"
url="https://www.sillycycle.com/abacus.html"
arch="all"
options="!check"  # xabacus does not ship a test suite
license="MIT"
depends=""
makedepends="libx11-dev libxaw3d-dev libxpm-dev libxt-dev libxml2-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://www.sillycycle.com/abacus/$pkgname-$pkgver.tar.xz"

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install install-png install-xpm
}

sha512sums="723fedde90b248c89fd12347933006d15482b302bd5d398a26ab04b432f60c82f4a5fee3508a602940af94a187c77a3cec754d368d20e0ada6e391379be1dd09  xabacus-8.5.1.tar.bz2"