blob: 8058015ce0b789cc611b4f96c8c48363edd7d3b0 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>
pkgname=binsec
pkgver=0.11.2
pkgrel=1
pkgdesc='Open-source toolset to help improve software security at the binary level'
arch=('x86_64')
url='https://binsec.github.io'
license=('LGPL-2.1-or-later')
makedepends=(
'dune>=3.0'
'ocaml-menhir>=20181113'
'ocaml-unisim_archisec'
)
checkdepends=(
'ocaml-ounit'
'ocaml-qcheck>=0.90'
'ocaml-ppx_inline_test'
)
depends=(
'bitwuzla'
'glibc'
'gmp'
'ocaml-curses'
'ocaml-grain_dypgen'
'ocaml-ocamlgraph>=1.8.5'
'ocaml-toml>=6'
'ocaml-unionfind'
'ocaml-zarith>=1.13'
'ocaml>=4.14'
)
optdepends=(
'bash: make_coredump.sh'
'boolector: Boolector SMT solver'
'z3: Z3 SMT solver'
'cvc4: CVC4 SMT solver'
'yices: Yices 2 SMT Solver'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/binsec/binsec/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('efb57156d36eb7d33bf8f976a943d8df9f4f90d636fbc824a9a7410b2e790c41c7e99c22920222f85e2ed0fb12432e1da077d117c5f0e7f44a7a2aa824295611')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
dune build --release
# Fix copying errors for debug package, default mode is 400
find _build -type f -exec chmod 644 {} \;
}
# Hotfix: OCaml dependencies for check() are broken
# check() {
# cd "${srcdir}/${pkgname}-${pkgver}"
# dune runtest --release --verbose
# }
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
DESTDIR="${pkgdir}" dune install \
--prefix "/usr" \
--libdir "/usr/lib/ocaml" \
--docdir "/usr/share/doc" \
--release
mv $pkgdir/usr/bin/make_coredump.sh $pkgdir/usr/share/binsec/utils/
}
|