summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7bd08af5c47f33dcafa4af2d8448b3971a5e604 (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-libocaml_exception
pkgver=2014.08.08
pkgrel=1
license=('GPL3')
arch=('i686' 'x86_64')
pkgdesc="OCaml library for statically-typed exceptions"
url="http://git.grenouille.com/?p=libocaml_exception.git"
depends=('ocaml' 'ocaml-lwt')
makedepends=('git' 'ocaml-findlib')
source=("git://git.autogeree.net/~julm/libocaml_exception.git#tag=v${pkgver//./-}"
        "git://git.autogeree.net/~julm/libocaml_make.git#tag=v2014-08-08"
        "git://git.autogeree.net/~julm/tool/pkg.git#tag=v2014-08-07")
options=('!strip')
md5sums=('SKIP'
         'SKIP'
         'SKIP')

prepare() {
    cd "${srcdir}/${pkgname#ocaml-}"

    git submodule init
    git config submodule.lib/libocaml/make.url "${srcdir}/libocaml_make"
    git config submodule.lib/tool/pkg.url "${srcdir}/pkg"
    git submodule update
}

build() {
    cd "${srcdir}/${pkgname#ocaml-}"

    make
}

package() {
    cd "${srcdir}/${pkgname#ocaml-}"

    export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlc -where)"
    install -dm755 "${OCAMLFIND_DESTDIR}"
    make install DESTDIR="${OCAMLFIND_DESTDIR}"
}