void-packages/srcpkgs/sparse/template

31 lines
689 B
Bash

# Template file for 'sparse'
pkgname=sparse
version=0.6.4
revision=1
build_style=gnu-makefile
make_use_env=yes
# make_build_args=V=1
hostmakedepends="pkg-config"
# not compatible with llvm18
makedepends="libxml2-devel sqlite-devel"
short_desc="Semantic Parser for C"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://git.kernel.org/pub/scm/devel/sparse/sparse.git"
distfiles="${homepage}/snapshot/${pkgname}-${version}.tar.gz"
checksum=bd98fd8a122ff79d38a81feb75ec728699101e80701f33f21180912c3c9e949c
do_configure() {
cat <<-EOF >local.mk
CC := $CC
CXX :=$CXX
LD := $CC
AR := $AR
PREFIX = /usr
EOF
}
post_install() {
vlicense LICENSE
}