1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/ocaml-extlib/APKBUILD
Fernando Casas Schössow 6209e6cdc3 testing/ocaml-extlib: update package to version 1.7.6
https://github.com/ygrek/ocaml-extlib
OCaml ExtLib additions to the standard library
2019-04-03 13:50:09 +00:00

34 lines
1.1 KiB
Text

# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
pkgname=ocaml-extlib
pkgver=1.7.6
pkgrel=0
pkgdesc="OCaml ExtLib additions to the standard library"
url="https://github.com/ygrek/ocaml-extlib"
arch="aarch64 ppc64le x86_64" # restricted by ocaml
license="LGPL-2.1-or-later-WITH-linking-exception"
makedepends="ocaml ocaml-findlib-dev ocaml-ocamldoc ocaml-cppo gawk"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/ygrek/ocaml-extlib/releases/download/$pkgver/extlib-$pkgver.tar.gz"
builddir="$srcdir/extlib-$pkgver"
build() {
cd "$builddir"
make build
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
export DESTDIR="$pkgdir"
export OCAMLFIND_DESTDIR="$DESTDIR/usr/lib/ocaml"
mkdir -p "$OCAMLFIND_DESTDIR"
make install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="ab3251b772cd7513d721ef73409e2d278141b9684e9e62f36f60907bad02de16006e9691a932d9c94d0a26ded9e4e4288ba203447bf53cce6c8619a11be8a0c7 extlib-1.7.6.tar.gz"