blob: dadbcd028b09306a35024d25d090bc14d764c5f8 (
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
38
39
40
41
42
43
44
45
|
# Maintainer: Christopher Price <pricechrispy at gmail dot com>
# Contributor: nerflad (nerflad@gmail.com)
pkgname=gapi-ocaml
pkgver=0.4.5
pkgrel=1
pkgdesc='A simple OCaml client for Google Services.'
arch=('x86_64')
url='https://astrada.github.io/gapi-ocaml/'
license=('MIT')
depends=(
'ocaml>=4.08.0'
'ocaml-findlib>=1.2.7'
'ocaml-curl>=0.5.3'
'ocaml-cryptokit>=1.3.14'
'ocaml-yojson>=1.6.0'
'cppo>=1.1.0'
'camlp-streams'
)
makedepends=(
'dune'
'ocaml-ounit'
)
options=('!strip' 'staticlibs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('13f859ccd38be6d18d2c7e010ad67b3e5a0254ed607f6508e11f3669b5776d66')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export OCAMLPATH="$(ocamlfind printconf destdir)"
dune build -p "$pkgname"
sed -i '/doc:\s\[/,$d' _build/default/gapi-ocaml.install
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
dune install "$pkgname" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"
install -dm755 "${pkgdir}/usr/share/"
#mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}
|