1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/ocaml-camlzip/APKBUILD
rubicon a09bd19e39 testing/ocaml-*: rebuild against ocaml-lwt-5.5.0-r1
ocaml-lwt was bumped to 5.5.0-r1 yesterday in MR !34598
2022-05-21 15:28:27 +00:00

58 lines
1.3 KiB
Text

# Contributor: rubicon <rubicon@mailo.com>
# Maintainer:
pkgname=ocaml-camlzip
_pkgname=camlzip
pkgver=1.11
_pkgver="rel${pkgver//./}"
pkgrel=0
pkgdesc="Access compressed files in ZIP, GZIP and JAR format"
url="https://github.com/xavierleroy/camlzip"
arch="all !riscv64" # limited by ocaml aport
license="LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="ocaml ocaml-findlib zlib-dev"
options="!check"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/xavierleroy/camlzip/archive/$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgver"
_ocamldir=usr/lib/ocaml
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
make all
}
package() {
export OCAMLFIND_DESTDIR="$pkgdir/$_ocamldir"
export OCAMLFIND_LDCONF=ignore
mkdir -vp "$OCAMLFIND_DESTDIR"
make install
}
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="
4d69ef900437e66e00cd345497ec70f407f28cd8344ee5f2fad685d3bfe356924597d1854b752f2841b4007f96d6e0307cfae7e13cfb6f74951ae3eba5198a06 ocaml-camlzip-1.11.tar.gz
"