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


                                              
                 
                           
                          
                                                                           



                      
                                                                       





                                            




                            









                                                                            
                                                                                                                                                                       
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=uncrustify
pkgver=0.68.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="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="f72d46be6287f814f6187ab1fccb4f554a62b8450ee12a3edf015b0844a62da608fc09899ee90087e58419ed8356bcc2949057793b1b5cce97c4342a6e6b5a62  uncrustify-0.68.1.tar.gz"