# Contributor: Camille Scholtz <onodera@openmailbox.org>
# Maintainer: Camille Scholtz <onodera@openmailbox.org>
pkgname=setroot
pkgver=2.0.1
pkgrel=0
pkgdesc="Simple X background setter inspired by imlibsetroot and feh"
url="https://github.com/ttzhou/setroot"
arch="all"
license="GPL-3.0"
depends=""
depends_dev="imlib2-dev"
makedepends="$depends_dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ttzhou/$pkgname/archive/v$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	make
}

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

sha512sums="95a3913120ac1d53b15ea383316b013f45f1393463d52e34c480527fbd0b26de454940cfc03df1ce107c8a07a1c5c703708fd8c0ea5bac6123e4a738581986a6  setroot-2.0.1.tar.gz"
