aboutsummaryrefslogblamecommitdiffstats
path: root/community/uncrustify/APKBUILD
blob: 3e6d41cdfa10bff27cfe3a1e61224962abaffbef (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                  
             

                                

                                              

                           
                          

                                                                                                            

         
                                                                       



                                           

 
         
                          

 
           
                                                           
 
                                                                

 
                                                                                                                                                                       
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.70.1
pkgrel=1
pkgdesc="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
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	make -C build
}

check() {
	make -C build test
}

package() {
	make -C build DESTDIR="$pkgdir" PREFIX=/usr install

	install -Dm644 etc/*.cfg -t "$pkgdir"/usr/share/$pkgname
}

sha512sums="d28f02d5c82e3b398fd0391fe49eb1260a905e525c7c4b513ccea68ffff480d96cd77936267dd7d6870a59903c72578efc0ff85696c877caf1f1c89160c79334  uncrustify-0.70.1.tar.gz"