-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
36 lines (32 loc) · 955 Bytes
/
template
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
# Template file for 'ocaml-findlib'
pkgname=ocaml-findlib
version=1.9.6
revision=1
build_style=configure
configure_args="-config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man"
makedepends="ocaml ocamlbuild"
short_desc="OCaml package manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://projects.camlcity.org/projects/findlib.html"
distfiles="http://download.camlcity.org/download/findlib-${version}.tar.gz"
checksum=2df996279ae16b606db5ff5879f93dbfade0898db9f1a3e82f7f845faa2930a2
nocross=yes
nopie=yes
disable_parallel_build=yes
case "$XBPS_TARGET_MACHINE" in
# native code platforms
x86_64*|aarch64*|riscv64*)
make_build_args="all opt";;
*)
nostrip=yes # breaks bytecode!
make_build_target="all";;
esac
do_install() {
make prefix="$DESTDIR" install
if [ -f src/findlib/ocamlfind_opt ]; then
vbin src/findlib/ocamlfind_opt
fi
vlicense LICENSE
rm -rf ${DESTDIR}/usr/lib/ocaml/ocamlbuild
}