# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=beforelight
pkgver=1.0.5
pkgrel=0
pkgdesc="Example screen saver for X.Org"
url="https://www.X.Org/"
arch="all"
license="X11"
depends=""
makedepends="util-macros libx11-dev libxscrnsaver-dev libxt-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/beforelight-$pkgver.tar.bz2"

prepare() {
	default_prepare
	chmod a+w config.sub
	update_config_sub
}

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

check() {
	make check
}

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

sha512sums="f6cc794159cda89ac060a43d190fa72419dbcf503a97093b4c0f05315389085ff804c2891e00da2843709e97633973010165f9d68ceb0dcc76eed150f9c75968  beforelight-1.0.5.tar.bz2"