# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=xwd
pkgver=1.0.9
pkgrel=2
pkgdesc="Utility to dump an image of an X window in XWD format"
url="https://gitlab.freedesktop.org/xorg/app/xwd"
arch="all"
license="custom"
options="!check" # no test suite
makedepends="libxkbfile-dev util-macros"
subpackages="$pkgname-doc"
source="https://xorg.freedesktop.org/archive/individual/app/xwd-$pkgver.tar.xz"

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

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

sha512sums="
ae59661b05160f5658920fd79031b6b8548cb7bbfc734194edb0acef5c95f76b210ca4443e9506fc1a0cb9df47ee7c22948502971afe578b44c75aa2a1138d56  xwd-1.0.9.tar.xz
"
