# Maintainer: Jack L. Frost <fbt@fleshless.org>

pkgname=suex
pkgver=0.2.2
pkgrel=3
pkgdesc="A complete re-implementation of OpenBSD's doas that's extremely more robust"
url='https://github.com/odedlaz/suex'
arch=( 'x86_64' )
license=( 'MIT' )
makedepends=( 'clang-tools-extra' 'ruby-ronn' 'cmake' )

source=( "https://github.com/odedlaz/suex/archive/v${pkgver}.tar.gz" )

build() {
	cd "${pkgname}-${pkgver}"

	mkdir build
	cd build
	cmake ..
	make
}

package() {
	cd "${pkgname}-${pkgver}"
	install -Dm4755 'bin/suex' "$pkgdir/usr/bin/suex"
}

sha1sums=('4cbe0da3978cb21c4a64b962797613e13b558752')
