summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a6c62a349507ec727f5225645a3d54adf1412e4 (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
# Maintainer: Matej Grabovsky <matej.grabovsky at gmail>
pkgname=ocaml-sedlex
pkgver=1.99.3
pkgrel=1
pkgdesc='Unicode-friendly OCaml lexer generator'
license=('MIT')
arch=('i686' 'x86_64')
url='https://github.com/alainfrisch/sedlex'
depends=('ocaml' 'ocaml-gen' 'ocaml-ppx_tools')
source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz")
options=(!strip !makeflags)
sha256sums=('54a1c32e5505dc081b3f231f21501ebebddcd50ee097e9c163ba347855b953fb')

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

    make all
    make opt
}

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

    export DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
    export OCAMLFIND_DESTDIR="$DESTDIR"
    mkdir -p "$DESTDIR"

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

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