mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-21 15:51:34 +01:00
They are no longer deleted, but instead moved to the -dev subpackages. This allows dev tools like Merlin to use them: http://rgrinberg.com/posts/opam-package-checklist/#omitting-bin-annot
72 lines
1.5 KiB
Plaintext
72 lines
1.5 KiB
Plaintext
# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
|
|
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
|
|
pkgname=ocaml-fileutils
|
|
_pkgname=fileutils
|
|
pkgver=0.6.3
|
|
pkgrel=1
|
|
pkgdesc="OCaml library for common file and filename operations"
|
|
url="https://github.com/gildor478/ocaml-fileutils"
|
|
arch="all !riscv64" # limited by ocaml aport
|
|
license="LGPL-2.1-or-later-WITH-linking-exception"
|
|
makedepends="
|
|
dune
|
|
ocaml
|
|
ocaml-ocamldoc
|
|
ocamlbuild
|
|
ocaml-compiler-libs
|
|
ocaml-findlib-dev
|
|
ocaml-stdlib-shims
|
|
"
|
|
options="!check"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/gildor478/ocaml-fileutils/archive/v$pkgver.tar.gz"
|
|
|
|
# 32-bit archs
|
|
case "$CARCH" in
|
|
arm*|x86) options="$options textrels" ;;
|
|
esac
|
|
|
|
build() {
|
|
export OCAMLPATH=/usr/lib/ocaml
|
|
dune build -p fileutils
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
dune install \
|
|
--destdir="$pkgdir" \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib/ocaml \
|
|
fileutils
|
|
|
|
cd "$pkgdir"
|
|
mkdir -vp usr/share/doc
|
|
mv -v usr/doc/"$_pkgname" \
|
|
usr/share/doc/"$pkgname"
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
|
|
cd "$pkgdir"
|
|
|
|
local path; for path in $(find usr/lib/ocaml \( \
|
|
-name '*.cmt' -o \
|
|
-name '*.cmti' -o \
|
|
-name '*.cmx' -o \
|
|
-name '*.cmxa' -o \
|
|
-name '*.ml' -o \
|
|
-name '*.mli' \
|
|
\))
|
|
do
|
|
amove "$path"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
491c01347714b9caf69e184be7e031d82d3602b91ce52c5c995b25897090d9af79b2ae058ff92b91ab31b44dd1fdf15fbe1a428d2f3a50872d3f0f7689a64e8c ocaml-fileutils-0.6.3.tar.gz
|
|
"
|