mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-08 15:21:51 +02:00
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
# Contributor: rubicon <rubicon@mailo.com>
|
|
# Maintainer:
|
|
pkgname=ocaml-hex
|
|
_pkgname=hex
|
|
pkgver=1.5.0
|
|
pkgrel=1
|
|
pkgdesc="Library providing hexadecimal converters"
|
|
url="https://github.com/mirage/ocaml-hex"
|
|
arch="all !riscv64" # limited by ocaml aport
|
|
license="ISC"
|
|
depends="ocaml-runtime ocaml-cstruct"
|
|
depends_dev="$pkgname=$pkgver-r$pkgrel ocaml-cstruct-dev"
|
|
makedepends="$depends_dev dune ocaml"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.bz2::https://github.com/mirage/ocaml-hex/releases/download/v$pkgver/hex-$pkgver.tbz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
_ocamldir=usr/lib/ocaml
|
|
|
|
# 32-bit archs
|
|
case "$CARCH" in
|
|
arm*|x86) options="$options textrels" ;;
|
|
esac
|
|
|
|
build() {
|
|
dune build --release --verbose
|
|
}
|
|
|
|
check() {
|
|
dune runtest --verbose
|
|
}
|
|
|
|
package() {
|
|
dune install \
|
|
--destdir="$pkgdir" \
|
|
--docdir=/.omit
|
|
rm -Rf "$pkgdir"/.omit
|
|
}
|
|
|
|
dev() {
|
|
default_dev
|
|
|
|
cd "$pkgdir"
|
|
|
|
local path; for path in $(find $_ocamldir \( \
|
|
-name '*.cmt' -o \
|
|
-name '*.cmti' -o \
|
|
-name '*.cmx' -o \
|
|
-name '*.cmxa' -o \
|
|
-name '*.ml' -o \
|
|
-name '*.mli' \
|
|
\))
|
|
do
|
|
amove "$path"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
baa09b47a90f0a54ad2becfb272f0674219e4fc0c03559deff26aaf13ccd59258b31bf98e56c44a5a8fa03437e3eba2bf5f0cd76e52d184d26cfb1170c490462 ocaml-hex-1.5.0.tar.bz2
|
|
"
|