aboutsummaryrefslogtreecommitdiffstats
path: root/community/opam/APKBUILD
blob: fd04e8252a8164d4a11a493368644d1d66964a37 (plain) (blame)
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
# Contributor: Michael Zuo <muh.muhten@gmail.com>
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
pkgname=opam
pkgver=2.0.5
pkgrel=1
pkgdesc="OCaml Package Manager"
url="https://opam.ocaml.org"
arch="all !x86 !armhf !armv7"  # ocaml not avail on excluded platforms
license="LGPL-2.1"
depends="ocaml curl tar unzip rsync patch bubblewrap bash"
makedepends="ocaml-compiler-libs"
source="https://github.com/ocaml/opam/releases/download/$pkgver/opam-full-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-full-$pkgver"
subpackages="$pkgname-doc"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var

	make -j1 lib-ext
	make -j1 all
}

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

check() {
	make tests
}

sha512sums="37ddf2775cbf54b2fb799776445b0fb2d0461bb7585ed99545fd7913bb528104edffd03e6e26f7daeaca9f27f116157766c18af59b3d71565f478bbabdb6d312  opam-full-2.0.5.tar.gz"