# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xrefresh
pkgver=1.1.0
pkgrel=0
pkgdesc="refresh all or part of an X screen"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="libx11-dev"
source="https://www.x.org/releases/individual/app/xrefresh-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

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

sha512sums="
d46988c0423c3c6efb21a2eec0df427934d041afa6dcbbfd33f2dff19bf5e077baf10bd96780d98326d3a3e34cbf5824da822b6cb0091873cc1baade0aa05c26  xrefresh-1.1.0.tar.xz
"
