# Maintainer: André Klitzing pkgname=uncrustify pkgver=0.70.0 pkgrel=0 pkgdesc="A source code beautifier" url="https://github.com/uncrustify/uncrustify" arch="all" license="GPL-2.0-or-later" makedepends="cmake python3" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/uncrustify/uncrustify/archive/uncrustify-$pkgver.tar.gz" builddir="$srcdir/uncrustify-uncrustify-$pkgver" build() { [ "$CARCH" = "s390x" ] && sed -i '/^12004/d' tests/c-sharp.test mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make } check() { cd "$builddir/build" make test } package() { install -d -m755 "$pkgdir"/usr/share/$pkgname install -m644 etc/*.cfg "$pkgdir"/usr/share/$pkgname install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING cd build make DESTDIR="$pkgdir" PREFIX=/usr install } sha512sums="c78da66fb44fee2f41bb0afbe072facae244436f83ffdc41da75a988c1b3ce0f4effa80a1214186d3b837591662c20a33b13d81b03719cef3235a39085cc10d5 uncrustify-0.70.0.tar.gz"