blob: 76111009a681f02ac0af77b52b7479c54723db64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer (AUR): Yen Chi Hsuan < yan12125 at gmail dot com >
# Contributor (AUR): lesebas < sebdeligny at gmail dot com>
# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=ocaml-extlib
pkgver=1.7.5
pkgrel=1
pkgdesc="Extends the OCaml standard library"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/ygrek/ocaml-extlib"
license=('LGPL')
depends=('ocaml')
makedepends=('ocaml-findlib' 'cppo')
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ygrek/ocaml-extlib/archive/${pkgver}.tar.gz")
options=('staticlibs')
sha256sums=('28e36367a65b1a5886d09f6d535e73b4aa88076778594c62df653a2b1536e62d')
build() {
cd ocaml-extlib-${pkgver}
make build
make doc
}
package () {
_DOCDIR="${pkgdir}/usr/share/doc/ocaml-extlib"
cd ocaml-extlib-${pkgver}
export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
install -Ddm755 "${OCAMLFIND_DESTDIR}"
make install
# Install doc
install -Ddm755 "$_DOCDIR"
cp -dr --no-preserve=ownership src/doc/* "$_DOCDIR/"
}
|