30 lines
710 B
Bash
30 lines
710 B
Bash
# Template file for 'sparse'
|
|
pkgname=sparse
|
|
version=0.5.2
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
short_desc="Semantic Parser for C"
|
|
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
|
|
license="MIT"
|
|
homepage="https://git.kernel.org/pub/scm/devel/sparse/sparse.git"
|
|
distfiles="${homepage}/snapshot/${pkgname}-${version}.tar.gz"
|
|
checksum=5ca5b7be7240a97fbdc6194f18d64837f9af070aeb0c3052f0a5d014acf1d048
|
|
|
|
pre_build() {
|
|
make_build_args="CC=$CC LD=$CC AR=$AR"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
sparse-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|