36 lines
973 B
Bash
36 lines
973 B
Bash
# Template file for 'dune'
|
|
pkgname=dune
|
|
version=3.2.0
|
|
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/"
|
|
distfiles="https://github.com/ocaml/dune/archive/refs/tags/${version}.tar.gz"
|
|
checksum=34740f5ecbce83a17c0b0bae1a93b66184064aa27c08c4020163e567dc6de2d7
|
|
nocross="ocaml"
|
|
|
|
_dune_release_pkgs="dune dune-action-plugin dune-build-info dune-configurator
|
|
dune-glob dune-private-libs dune-site dyn stdune ordering xdg fiber"
|
|
|
|
do_configure() {
|
|
./configure --libdir=/usr/lib/ocaml --mandir=/usr/share/man
|
|
}
|
|
|
|
do_build() {
|
|
make dune.exe
|
|
./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
|
|
}
|