# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.6.2
pkgrel=0
pkgdesc="Automatic code formatter"
url="https://sourceforge.net/projects/astyle/"
arch="all"
license="MIT"
depends_dev="$pkgname=$pkgver-r$pkgrel"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="https://gitlab.com/saalen/astyle/-/archive/$pkgver/astyle-$pkgver.tar.bz2
	makefile-install.patch
	"
builddir="$srcdir/astyle-$pkgver/AStyle/build/gcc"

build() {
	make shared release
}

check() {
	./bin/astyle --version
}

package() {
	DESTDIR="$pkgdir" make INSTALL=install install
}

sha512sums="
4b334bf3d44b1016cb0cf00878bc42750e38f19bc3c48f97ac18ffa759f90dcb41ee2c85257b4742f288e81aa3590dba2c21d40d380c0b348792de629cc8181f  astyle-3.6.2.tar.bz2
6bfaba1437af39cb9250f292fdf1409d83f2b9b73c4bb4abf5c06b0d993b2dec050e49ed904650042c2dacd92c4bfb0a32026900a47d5a28635985aa9116833e  makefile-install.patch
"
