# Maintainer: omni <omni+alpine@hack.org>
pkgname=rset
pkgver=3.0
pkgrel=0
pkgdesc="Configure systems using any scripting language"
url="https://scriptedconfiguration.org/"
license="ISC"
arch="all"
checkdepends="curl ruby-bundler"
subpackages="$pkgname-doc"
source="https://scriptedconfiguration.org/code/rset-$pkgver.tar.gz
	tests_Makefile.patch
	"

build() {
	./configure
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -Dm0644 NEWS -t "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm0644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
54b031c64ceddd7ee8992be6bbdb0d5299f668789978a1267a30b082629f74f0609cf37d58b8b13ed83df55c7fa117aae55e124b0684fbc3540784718ae753ce  rset-3.0.tar.gz
7c2ea008aa3bb0a6259d4fd81ecdcf6fa21eeaee949fcff5d1e89f3a6e13884432d7274ca2e86a70673e07c439d57f6b4c085078a94421a0f039cdd672f7b6a8  tests_Makefile.patch
"
