38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Template file for 'dune'
|
|
pkgname=dune
|
|
version=3.15.2
|
|
revision=1
|
|
makedepends="ocaml"
|
|
depends="ocaml"
|
|
short_desc="Composable build system for OCaml"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://dune.build/"
|
|
changelog="https://raw.githubusercontent.com/ocaml/dune/main/CHANGES.md"
|
|
distfiles="https://github.com/ocaml/dune/releases/download/${version}/dune-${version}.tbz"
|
|
checksum=f959980542ca85909b3f3f8e9be65c2b8a375f3a4e3bd83c7ad7a07f2e077933
|
|
nocross="ocaml"
|
|
|
|
_dune_release_pkgs="dune dune-build-info dune-configurator
|
|
dune-glob dune-private-libs dune-site dyn stdune ordering xdg
|
|
chrome-trace ocamlc-loc"
|
|
|
|
do_configure() {
|
|
./configure --libdir=/usr/lib/ocaml --mandir=/usr/share/man
|
|
}
|
|
|
|
do_build() {
|
|
make release
|
|
./dune.exe build -p "$(echo $_dune_release_pkgs |tr ' ' ,)" --profile dune-bootstrap
|
|
}
|
|
|
|
do_install() {
|
|
for pkg in $_dune_release_pkgs; do
|
|
./dune.exe install $pkg \
|
|
--destdir=$DESTDIR --prefix=/usr --libdir=/usr/lib/ocaml --mandir=/usr/share/man
|
|
done
|
|
|
|
rm -r ${DESTDIR}/usr/doc
|
|
vlicense LICENSE.md
|
|
}
|