# Maintainer: André Klitzing pkgname=uncrustify pkgver=0.66.1 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="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir" build() { cd "$builddir" 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="2385b8525abdbe1abe7c88bf884de09523e2246f4a36e53fb068620c85402d5184987ee71ed5243d2e582cbd529e646daa568ab54cf97fd309a04af875136996 uncrustify-0.66.1.tar.gz"