diff options
| author | Fernando Casas Schössow <casasfernando@outlook.com> | 2019-02-07 00:01:45 +0000 |
|---|---|---|
| committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-03-05 13:30:20 +0000 |
| commit | 33750e5ca0ad4e88de99c7f349965eb1631d1ef7 (patch) | |
| tree | 6e5f0f3ff8f28414cf46533c0f27bd94b017cfab /testing | |
| parent | 536e567476292fdea18b862b2e4b7fddd26bd31e (diff) | |
| download | aports-33750e5ca0ad4e88de99c7f349965eb1631d1ef7.tar.bz2 aports-33750e5ca0ad4e88de99c7f349965eb1631d1ef7.tar.xz | |
testing/ocaml-calendar: new aport
http://calendar.forge.ocamlcore.org/
Objective Caml library for managing dates and times
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/ocaml-calendar/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ocaml-calendar/APKBUILD b/testing/ocaml-calendar/APKBUILD new file mode 100644 index 0000000000..2bc559b892 --- /dev/null +++ b/testing/ocaml-calendar/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Fernando Casas Schossow <casasfernando@outlook.com> +# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com> +pkgname=ocaml-calendar +pkgver=2.03.2 +pkgrel=0 +pkgdesc="Objective Caml library for managing dates and times" +url="http://calendar.forge.ocamlcore.org/" +arch="aarch64 ppc64le x86_64" # restrict by ocaml +license="LGPL-2.1-or-later-WITH-linking-exception" +makedepends="ocaml ocaml-findlib-dev ocaml-ocamldoc gawk" +subpackages="$pkgname-dev $pkgname-doc" +source="http://forge.ocamlcore.org/frs/download.php/915/calendar-2.03.2.tar.gz" +builddir="$srcdir/calendar-$pkgver" + +build() { + cd "$builddir" + ./configure --prefix=/usr + make + make doc +} + +check() { + cd "$builddir" + make tests +} + +package() { + cd "$builddir" + export DESTDIR="$pkgdir" + export OCAMLFIND_DESTDIR="$DESTDIR/usr/lib/ocaml" + mkdir -p "$OCAMLFIND_DESTDIR" + make install + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -D -m644 LGPL "$pkgdir/usr/share/licenses/$pkgname/LGPL" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +sha512sums="c6acc326aaed77d238126f8723a8e3e4054808ddfef974d9aead39731f4ab9f386eff2f34aab17e4eade3825dd1e3b708a404ecde3fc9b82416482c7095de82b calendar-2.03.2.tar.gz" |
