summaryrefslogtreecommitdiff
path: root/pcr/ocaml-result/PKGBUILD
blob: ad55bd75ff0b24d9a6b1ad73a69346b9657bfcf4 (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
# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>

# parabola changes and rationale:
#  no changes.

_pkgname=result
pkgname=ocaml-${_pkgname}
pkgver=1.2
pkgrel=3
pkgdesc="Compatibility Result module"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/janestreet/result"
license=('BSD')
depends=('ocaml')
makedepends=('ocaml-findlib')
options=('!strip')
source=("https://github.com/janestreet/result/archive/${pkgver}.tar.gz")
sha256sums=('7cf7909f902994dc885ceae1983e4cda3665914c774f774604d076b89f76f7dd')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make -j1
}


package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  mkdir -p "${OCAMLFIND_DESTDIR}"
  make install

  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}