mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
The cargo vars are now set in abuild.conf by default. Newlines done with: find . -name APKBUILD -exec sed -i '/^$/N;/^\n$/D' {} \; See also: https://stackoverflow.com/a/4522043
64 lines
1.3 KiB
Text
64 lines
1.3 KiB
Text
# Contributor: rubicon <rubicon@mailo.com>
|
|
# Maintainer:
|
|
pkgname=ocaml-xmlm
|
|
_pkgname=xmlm
|
|
pkgver=1.4.0
|
|
pkgrel=0
|
|
pkgdesc="Streaming XML codec for OCaml"
|
|
url="https://erratique.ch/software/xmlm"
|
|
arch="all !riscv64" # limited by ocaml aport
|
|
license="ISC"
|
|
depends="ocaml-runtime"
|
|
depends_dev="$pkgname=$pkgver-r$pkgrel"
|
|
makedepends="
|
|
ocaml
|
|
ocaml-compiler-libs
|
|
ocaml-findlib
|
|
ocamlbuild
|
|
ocaml-topkg
|
|
cmd:opam-installer
|
|
"
|
|
options="!check" # no tests provided
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.bz2::https://erratique.ch/software/xmlm/releases/xmlm-$pkgver.tbz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
_ocamldir=usr/lib/ocaml
|
|
|
|
# 32-bit archs
|
|
case "$CARCH" in
|
|
arm*|x86) options="$options textrels" ;;
|
|
esac
|
|
|
|
build() {
|
|
ocaml pkg/pkg.ml build
|
|
}
|
|
|
|
package() {
|
|
opam-installer -i \
|
|
--prefix="$pkgdir/usr" \
|
|
--libdir="$pkgdir/$_ocamldir" \
|
|
--docdir="$builddir/.omit" \
|
|
$_pkgname.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="
|
|
69f6112e6466952256d670fe1751fe4ae79e20d50f018ece1709eb2240cb1b00968ac7cee110771e0617a38ebc1cdb43e9d146471ce66ac1b176e4a1660531eb ocaml-xmlm-1.4.0.tar.bz2
|
|
"
|