dune: update to 3.0.2.
This commit is contained in:
parent
d859d707fc
commit
71ac5a5ba9
1 changed files with 20 additions and 7 deletions
|
@ -1,9 +1,7 @@
|
||||||
# Template file for 'dune'
|
# Template file for 'dune'
|
||||||
pkgname=dune
|
pkgname=dune
|
||||||
version=2.9.2
|
version=3.0.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
|
||||||
make_build_target="release"
|
|
||||||
makedepends="ocaml"
|
makedepends="ocaml"
|
||||||
depends="ocaml"
|
depends="ocaml"
|
||||||
short_desc="Composable build system for OCaml"
|
short_desc="Composable build system for OCaml"
|
||||||
|
@ -11,12 +9,27 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://dune.build/"
|
homepage="https://dune.build/"
|
||||||
distfiles="https://github.com/ocaml/dune/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/ocaml/dune/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=b2301cdec07a56135f3c1531ba7afc61a85511119577ee8f7814dc0a3d49063d
|
checksum=e8bdf26f0d93a313ba9ebdb4c7a30689eb8c34786421a52a6f43d82f0218e642
|
||||||
nocross="ocaml"
|
nocross="ocaml"
|
||||||
|
|
||||||
post_install() {
|
_dune_release_pkgs="dune dune-action-plugin dune-build-info dune-configurator
|
||||||
vmkdir usr/share
|
dune-glob dune-private-libs dune-site dyn stdune ordering xdg fiber"
|
||||||
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
|
|
||||||
|
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
|
||||||
|
done
|
||||||
|
|
||||||
rm -r ${DESTDIR}/usr/doc
|
rm -r ${DESTDIR}/usr/doc
|
||||||
vlicense LICENSE.md
|
vlicense LICENSE.md
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue