aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-menhir/APKBUILD
blob: 6d9d289449e021a611940612995c03948edfcda7 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ocaml-menhir
_pkgname=menhir
# NOTE: Check supported version in Reason before upgrading!
pkgver=20171013
pkgrel=4
pkgdesc="LR(1) parser generator for OCaml"
url="http://gallium.inria.fr/~fpottier/menhir/"
arch="aarch64 ppc64le x86_64"  # limited by ocaml aport
license="GPL-2.0-only"
depends="ocaml-findlib"
makedepends="ocaml ocaml-ocamlbuild-dev ocamlbuild"
options="!check"  # no tests provided
subpackages="$pkgname-dev $pkgname-doc"
source="http://gallium.inria.fr/~fpottier/menhir/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	make PREFIX=/usr TARGET=native
}

package() {
	export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
	mkdir -p "$OCAMLFIND_DESTDIR"

	make install PREFIX="$pkgdir/usr" TARGET=native

	rm -Rf "$pkgdir"/usr/share/doc/menhir/demos
}

dev() {
	pkgdesc="$pkgdesc (development files)"
	depends="$pkgname=$pkgver-r$pkgrel ocaml-runtime"
	license="LGPL-2.0-only-WITH-linking-exception"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/ocaml "$subpkgdir"/usr/lib/
}

sha512sums="ba6359c471aee62c996bd6495612f444e7ac226f7aad9991a76e4daa2df00cdec2387c488c6a29246ca48079bd8199b94de09a44f1fb05465cbeddff0b39df54  menhir-20171013.tar.gz"