# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xvidtune
pkgver=1.0.3
pkgrel=0
pkgdesc="Tune video modes on an X11 display"
url="https://www.X.Org/"
arch="all"
license="X11"
depends=""
makedepends="libxaw-dev libxmu-dev libxxf86vm-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/xvidtune-$pkgver.tar.bz2"

prepare() {
	cd "$builddir"
	default_prepare
	chmod a+w config.sub
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="0f8a4fca1b544ef8f9623246fb0ece75739a0889f2e729c040cd768c595f0bbbfa3a665576369032535c34c7d55784a29b62f0d51432bf2b75d2cec619db7352  xvidtune-1.0.3.tar.bz2"