# Maintainer: André Klitzing pkgname=uncrustify pkgver=0.68 pkgrel=0 pkgdesc="A source code beautifier" url="https://github.com/uncrustify/uncrustify" arch="all" license="GPL-2.0" makedepends="cmake python2" subpackages="$pkgname-doc" source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir" build() { cd "$builddir" [ "$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() { cd "$builddir" 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="ecf55cc033d195817fe021f93e621e91f3d67eaeb76c0ff410b5d067807b48c780c67feb8e432f9ce96a466e1aa7cafbff19ef32b6c27de7b23729af4eb86e77 uncrustify-0.68.tar.gz"