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

                                              

                           
                          
                                                                                                           
                                                    
 
                                                

         
                          
                                            
                                           
                           

 
         

                                 

 
           
                                               
 
                                                                

 

                                                                                                                                                          
                                                                                                                                                                      
 
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.73.0
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
		use-default-only-with-a-switch.patch
"
builddir="$srcdir/uncrustify-uncrustify-$pkgver"

build() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

check() {
	cd build
	ctest --output-on-failure
}

package() {
	DESTDIR="$pkgdir" cmake --install build

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

sha512sums="
24b7eb2a76e2dcfca64223df40a434fcdcc281f5937cbf5e78832deb7716ee01b596aedff473af1e3023b33914357582500e4954f4ded009684bc4fb700e64d9  uncrustify-0.73.0.tar.gz
dc82e10eba5c5f5ac48a2777f5abd3bfcc16d1f739e65a578a22838e0e891529df296054a80e79e11cfb9db7a5fea6c5f35f602e243a1c1e7ef8c900f13d06a7  use-default-only-with-a-switch.patch
"