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


                                                              
            
        



                                           
             
                         
                          
                                                                                    
 
         

                                               

 



                  
           
                                                  



                                                   
                                                 

 


                                                                                                                                                     
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sparse
pkgver=0.6.4
pkgrel=0
pkgdesc="A semantic parser of source files"
url="http://sparse.wiki.kernel.org/"
arch="all"
license="MIT"
depends="gcc"
makedepends="libxml2-dev"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/devel/sparse/dist/sparse-$pkgver.tar.xz"

build() {
	make CFLAGS="$CFLAGS" LD="${LD:-gcc}" \
		AR="${AR:-ar}" CC="${CC:-gcc}"
}

check() {
	make check
}

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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 FAQ README \
		Documentation/data-structures.txt \
		"$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
4ada31e588469d15862579dd7eb926ce1ad717bf96d38d425b9153f2efe73949fdda5bc59d05d926614a08d70e656e4ff531a5f0a1cf8e7725c596dcdba169f9  sparse-0.6.4.tar.xz
"