mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 08:17:14 +02:00
Email for maintainer of ocaml-num (alpine-mips-patches) bounced. Permission has been obtained from the other 2 maintainers involved.
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
# Contributor: Andy Li <andy@onthewings.net>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=ocaml-obuild
|
|
_pkgname=obuild
|
|
pkgver=0.1.11
|
|
pkgrel=0
|
|
pkgdesc="Simple package build system for ocaml"
|
|
url="https://github.com/ocaml-obuild/obuild"
|
|
arch="all !riscv64 !loongarch64" # ocaml
|
|
license="BSD-2-Clause"
|
|
makedepends="bash ocaml ocaml-findlib cmd:opam-installer"
|
|
options="!check" # no tests provided
|
|
source="https://github.com/ocaml-obuild/obuild/archive/obuild-v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$_pkgname-v$pkgver"
|
|
|
|
# 32-bit archs
|
|
case "$CARCH" in
|
|
arm*|x86) options="$options textrels" ;;
|
|
esac
|
|
|
|
build() {
|
|
./bootstrap
|
|
}
|
|
|
|
package() {
|
|
opam-installer -i \
|
|
--prefix="$pkgdir"/usr \
|
|
--libdir="$pkgdir"/usr/lib/ocaml \
|
|
$_pkgname.install
|
|
}
|
|
|
|
prepare_py_provides() {
|
|
local datadir="${subpkgdir:-$pkgdir}"
|
|
local pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
|
|
local controldir="$pkgbasedir"/.control.${subpkgname:-$pkgname}
|
|
|
|
options_has "!tracedeps" && return 0
|
|
|
|
ocaml4-abuild-find provides \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir" \
|
|
"$pkgver-r$pkgrel"
|
|
}
|
|
|
|
scan_python3_dependency() {
|
|
local controldir="$2" datadir="$3"
|
|
|
|
ocaml4-abuild-find requires \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir"
|
|
}
|
|
|
|
sha512sums="
|
|
855f47e31bebacb2adcd0ed31e9d50f1f4803f91828afc192d306dc2cc28adc18dd91d0bf40f8ef814ac85822a20db16dce87a0bd6edf0ff9037b8dc039abff3 obuild-v0.1.11.tar.gz
|
|
"
|