# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.5.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="
bdd84dfceeb214884fa6d9089b19d53dfefcf1d26f5ef5fb6ec45bcc21c6eaf3ab1b7f8ad1885727b16e7972ce7cd9a2f03cccfba8c593be683575e6b481cdb5  astyle-3.5.2.tar.bz2
92c184e6a4061a02c520b0593b74a67f3e1805c877d5799c6cdc8f1abb70b0f05a78bbbe9c6e2157a01afeee3ac2febb63a0d777e89a01d1478e206c7afb22c0  makefile-install.patch
"
