aboutsummaryrefslogtreecommitdiffstats
path: root/community/sparse/APKBUILD
blob: 004dfd4d7c03d1f48cc0c3704d54a3c459b9a93d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sparse
pkgver=0.6.1
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}"
}

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="2faad9b3263f19f941cd6a5891960d2c7d1066c664d3ef68e722d461785aeed2d4a9539df3556bbd98c022e7ee965b8030c49272ab6003113ba3b36f73c00187  sparse-0.6.1.tar.xz"