# Contributor: Horst Burkhardt <horst@adelielinux.org>
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=xabacus
pkgver=8.1.7
pkgrel=1
pkgdesc="Simple X11 abacus widget"
url="http://www.sillycycle.com/abacus.html"
arch="all !s390x"
options="!check"  # xabacus does not ship a test suite
license="MIT"
depends=""
makedepends="libx11-dev libxpm-dev libxt-dev libxml2-dev"
subpackages="$pkgname-doc"
# Refuses cURL user agents: 406 Not Acceptable
#source="http://www.sillycycle.com/abacus/$pkgname-$pkgver.tar.xz"
source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

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

sha512sums="6e126d79c606f5d10689bc6f495f3e586351ce9500f83c0a03ac772471c9f788e08efe228356da1c1479acc8b2d5f406b6d82ac78066e18ed8ac6e24502524bb  xabacus-8.1.7.tar.bz2"