blob: e40f4041d973d8d13ea9f887e8cbebcba0bad723 (
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: robertfoster
pkgname=ocaml-sedlex-git
pkgver=r188.e4f029b
pkgrel=1
pkgdesc='Unicode-friendly OCaml lexer generator'
license=('MIT')
arch=('i686' 'x86_64')
url='https://github.com/alainfrisch/sedlex'
depends=('ocaml' 'ocaml-gen-git' 'ocaml-migrate-parsetree' 'ocaml-ppx_tools_versioned' 'ocaml-uchar')
source=("$pkgname::git+https://github.com/alainfrisch/sedlex")
options=(!strip !makeflags)
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname}"
sed -si 's,Pervasives.,Stdlib.,g' src/generator/gen_unicode.ml.inc
dune build @install
}
package() {
cd "$srcdir/${pkgname}"
export OCAML_STDLIB_DIR="$(ocamlfind printconf destdir)"
dune install --prefix=$pkgdir/usr --libdir=$pkgdir$OCAML_STDLIB_DIR
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('SKIP')
|