# Maintainer: André Klitzing pkgname=astyle pkgver=3.1 pkgrel=1 pkgdesc="An automatic code formatter" url="http://sourceforge.net/projects/astyle" arch="all" license="LGPL" source="https://downloads.sourceforge.net/sourceforge/astyle/${pkgname}_${pkgver}_linux.tar.gz fix-ppc64le-build.patch" builddir="$srcdir/$pkgname" build() { cd "$builddir/build/gcc" make release } check() { cd "$builddir/build/gcc" # upstream do not provide tests ./bin/astyle --version } package() { cd "$builddir/build/gcc" install -Dm0755 bin/astyle "$pkgdir/usr/bin/astyle" } sha512sums="2e8f13d291abda66bbba30174c364c81a81a490e0a21376f7da7cf471644c22caa37b9eefb100d093bf26d1a8bfa9d2f14b4c2a9b75b3cb84428b4514e277ff2 astyle_3.1_linux.tar.gz ef934980659777d398ee53f20b68f94e06aa8e2c9036dc257adbfbc99b5b45914914011aa34d0015f7d60fa43daed39527ff335fed95c721a85aeb4b2a7675c5 fix-ppc64le-build.patch"