aboutsummaryrefslogtreecommitdiffstats
path: root/community/dune/APKBUILD
blob: 6fc0d64a862aa61ea6d8212ec45f82918c3c3cb5 (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:
pkgname=dune
pkgver=2.7.1
pkgrel=0
pkgdesc="A composable build system for OCaml (formerly Jbuilder)"
url="https://github.com/ocaml/dune"
arch="all !x86 !armhf !armv7 !mips !mips64"  # limited by ocaml abuild
license="Apache-2.0"
checkdepends="bash"
makedepends="ocaml ocaml-compiler-libs ocaml-findlib-dev"
provides="jbuilder=$pkgver-r$pkgrel"
subpackages="$pkgname-doc $pkgname-emacs::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/dune/archive/$pkgver.tar.gz"
options="!check"  # FIXME requires ocaml-menhir

build() {
	make release
}

check() {
	make test
}

package() {
	DESTDIR="$pkgdir" make install

	# Fix docs location
	mv "$pkgdir"/usr/doc "$pkgdir"/usr/man "$pkgdir"/usr/share
}

emacs() {
	depends="$pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel emacs"
	pkgdesc="Emacs plugins for $pkgname"

	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/emacs/ "$subpkgdir"/usr/share/emacs/
}

sha512sums="b77d0e207263107365e5a6e94423e8ab4ddbab1f920872d915e4014b7cc69915274b53fe946bb4b29dfe3de2bf5573ab3b2bffb4db8eb50b472e7dfb6cab88b7  dune-2.7.1.tar.gz"