summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73378762fa4e8c12b02b6003f43c2db9e2a2b741 (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
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=ocaml-earley
pkgver=3.0.0
pkgrel=2
pkgdesc='Parsing library based on Earley Algorithm'
arch=(i686 x86_64)
url="https://github.com/rlepigre/$pkgname"
license=(custom:CECILLB)
depends=(glibc
         ocaml
         zstd libzstd.so)
makedepends=(dune
             ocaml-stdlib-shims
             ocaml-findlib)
options=(!strip)
_archive="$pkgname-$pkgver"
source=("$url/archive/$pkgver/$_archive.tar.gz")
sha256sums=('1fb2e0098bfa82407c7bf287edcc78a7c0410acc16f3a975551850b7457f0c77')

build() {
	cd "$_archive"
	dune build -p ${pkgname#*-}
}

package() {
	cd "$_archive"
	dune install \
		--prefix "/usr" \
		--libdir "$(ocamlfind printconf destdir)" \
		--docdir "/usr/share/doc" \
		--destdir "$pkgdir"
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENCE
}