Skip to content
Snippets Groups Projects
Commit 4147dbef authored by rubicon's avatar rubicon Committed by alice
Browse files

testing/ocaml-camlzip: new aport

needed for ocamlnet
parent b99f004b
No related branches found
No related tags found
1 merge request!34403testing/ocaml-*: upgrade Reason ML, add OCamlnet and LablGtk3
# 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" # restricted by ocaml
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"
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
make all
}
package() {
export OCAMLFIND_DESTDIR="$pkgdir"/usr/lib/ocaml
mkdir -vp "$OCAMLFIND_DESTDIR"
# FIXME: find another way to stop ocamlfind from trying
# to access system ld.conf at /usr/lib/ocaml/ld.conf
sed -ri 's|(ocamlfind install)|\1 -ldconf /tmp/ld.conf|g' \
Makefile
touch /tmp/ld.conf
make install
}
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="
4d69ef900437e66e00cd345497ec70f407f28cd8344ee5f2fad685d3bfe356924597d1854b752f2841b4007f96d6e0307cfae7e13cfb6f74951ae3eba5198a06 ocaml-camlzip-1.11.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment