# Template file for 'uncrustify'
pkgname=uncrustify
version=0.68
revision=1
build_style=cmake
create_wrksrc=yes
hostmakedepends="python"
short_desc="Source Code Beautifier for multiple languages"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://uncrustify.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=26036af6d89fe5561bad6857b8cfeb633f455dd992ed08fd9918d0dabcf62652

do_check() {
	make -C build test
}

post_install() {
	for f in etc/*cfg; do
		vinstall $f 0644 usr/share/${pkgname}
	done
}
