blob: f484942022213c5196bc8946d79faba5a885001a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Xuanrui Qi <me@xuanruiqi.com>
pkgname=compcert
_dirname=CompCert
pkgver=3.14
pkgrel=1
pkgdesc="The formally verified C compiler"
arch=('x86_64')
url="http://compcert.inria.fr"
license=('custom:INRIA Non-Commercial License Agreement')
depends=('gcc')
makedepends=('coq>=8.12.0' 'ocaml>=4.05.0'
'ocaml-menhir>=20190626'
'ocaml-findlib' # See: https://github.com/AbsInt/CompCert/issues/281
)
checkdepends=('parallel')
source=("https://github.com/AbsInt/CompCert/archive/v$pkgver.tar.gz")
sha256sums=('5588747dbc897872aef4795db7c92ba3f9384f5f2ac1bc455e3b01b2d3c9af20')
prepare() {
cd ${srcdir}/${_dirname}-${pkgver}
}
build() {
cd ${srcdir}/${_dirname}-${pkgver}
# Some useful options:
# -clightgen: builds and installs the clightgen tool
# -install-coqdev: also installs the Coq development, implied by -clightgen, useful
# if you will use tools such as the Princeton VST)
./configure -ignore-coq-version -ignore-ocaml-version -prefix /usr ${CARCH}-linux
make all
}
check() {
cd ${srcdir}/${_dirname}-${pkgver}/test
make all
make parallel
}
package() {
cd ${srcdir}/${_dirname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|