# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=libxaw3d
pkgver=1.6.6
pkgrel=0
pkgdesc="3D appearance variant of the X Athena Widget Set"
url="https://gitlab.freedesktop.org/xorg/lib/libxaw3d"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="libxmu-dev util-macros"
source="https://xorg.freedesktop.org/archive/individual/lib/libXaw3d-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/libXaw3d-$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
24a292747d6edb4d36c895495a5104d9295df09581e82cb917102ae3dc569e40d9f8b408660d98c57069e1a3d5380d0368d16f01c46199aa56660e46190cebeb  libXaw3d-1.6.6.tar.gz
"
