aboutsummaryrefslogtreecommitdiffstats
path: root/community/sparse/APKBUILD
blob: 631de6e4107c9492a96b0a5ab63b21d1286a0925 (plain)
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
30
31
32
33
34
35
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=sparse
pkgver=0.6.0
pkgrel=0
pkgdesc="A semantic parser of source files"
url="http://sparse.wiki.kernel.org/"
arch="all"
license="MIT"
depends="gcc"
depends_dev=""
makedepends="libxml2-dev"
install=""
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/devel/$pkgname/dist/$pkgname-$pkgver.tar.xz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	make PREFIX=/usr
}

package() {
	cd "$builddir"
	make CFLAGS="$CFLAGS" LD="${LD:-gcc}" \
		AR="${AR:-ar}" CC="${CC:-gcc}" \
		DESTDIR="$pkgdir" install

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

sha512sums="5c6c88f203c941bf0efd28802ef91641c96e7d4b4688a5176d091ff0fd6a650d9147e590b631602a8bd08994a35261977569367861a6d605ccdd25e4a07debf9  sparse-0.6.0.tar.xz"