summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96fdf87482eaebfdbfcfd1e83bfd4aa8bc816979 (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
# Maintainer: Matej Grabovsky <matej.grabovsky at gmail>
pkgname=ocaml-gen
pkgver=0.5.2
pkgrel=4
pkgdesc='Iterators for OCaml'
license=('BSD')
arch=('i686' 'x86_64')
url='https://github.com/c-cube/gen/'
depends=('ocaml')
makedepends=('ocaml-findlib' 'dune')
source=("https://github.com/c-cube/gen/archive/${pkgver}.tar.gz")
options=(!strip !makeflags)
sha256sums=('8246738ca19810192f005b6e350605aae5132a6a55848795ee1fa002addf1b06')

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

    dune build --release
}

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

    PREFIX="$pkgdir$(ocamlfind printconf destdir)"

    dune install --prefix="$PREFIX" --libdir="$PREFIX"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set et sw=4 sts=4 et: