mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-19 14:52:27 +01:00
38 lines
1011 B
Plaintext
38 lines
1011 B
Plaintext
# Contributor: Andy Li <andy@onthewings.net>
|
|
# Maintainer: Andy Li <andy@onthewings.net>
|
|
pkgname=ocaml-obuild
|
|
_pkgname=obuild
|
|
pkgver=0.1.10
|
|
pkgrel=1
|
|
pkgdesc="Simple package build system for ocaml"
|
|
url="https://github.com/ocaml-obuild/obuild"
|
|
arch="all !riscv64" # restricted by ocaml aport
|
|
license="BSD-2-Clause"
|
|
depends="ocaml-runtime"
|
|
makedepends="bash ocaml ocaml-findlib cmd:opam-installer"
|
|
options="!check" # no tests provided
|
|
source="$pkgname-$pkgver.tar.gz::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
|
|
|
|
rm -rf "$builddir"/dist
|
|
}
|
|
|
|
sha512sums="
|
|
23667213ec7de6610fd5b3c7e0c5f98c081d0244619ed0c833ad13647b9a40561f21e862574488454993eab84a8467f4b2caa3288293451bb54f08b92d280175 ocaml-obuild-0.1.10.tar.gz
|
|
"
|