# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.0.1
pkgrel=0
pkgdesc="An automatic code formatter"
url="http://sourceforge.net/projects/astyle"
arch="all"
license="LGPL"
source="http://downloads.sourceforge.net/sourceforge/astyle/${pkgname}_${pkgver}_linux.tar.gz"
builddir="$srcdir/$pkgname/build/gcc"

build() {
	cd "$builddir"
	make release
}

check() {
	cd "$builddir"
	# upstream do not provide tests
	./bin/astyle --version
}

package() {
	cd "$builddir"
	install -Dm0755 bin/astyle "$pkgdir/usr/bin/astyle"
}

sha512sums="3e8d617c0ec89682bfb076081bb63ae9d44e897de0c85d5109b28adbbfe0620d5dacf59a4bd96ac30a5a4fcb3be136758e9c6fe2c69258b37956c212890a7158  astyle_3.0.1_linux.tar.gz"
