aboutsummaryrefslogtreecommitdiffstats
path: root/community/opam/APKBUILD
blob: 2816d601b04dcedbddc4ac0591bc3032a614fbee (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
# Contributor: Michael Zuo <muh.muhten@gmail.com>
# Maintainer: Anil Madhavapeddy <anil@recoil.org>
pkgname=opam
pkgver=1.2.2
pkgrel=3
pkgdesc="OCaml Package Manager"
url="https://opam.ocaml.org"
arch="all !x86 !armhf !s390x"  # ocaml not avail on excluded platforms
license="LGPL-3.0"
depends="ocaml camlp4 curl tar unzip rsync aspcud patch"
makedepends="$depends_dev"
source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz
	fix-default-stubsdir.patch"
builddir="$srcdir/$pkgname-full-$pkgver"

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make -j1 lib-ext all
}

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

sha512sums="f095ef4c02e6a411ee115b508c7dc21cf6480f60ad5d84ed5ce5868afa1f6225ead0eb6703763d803edc22595e83db67cdd1a4ecab50ee2c62c20965b0542436  opam-full-1.2.2.tar.gz
704a9d36b93267a982fd5bad99637338afab6b0a8edbbb127e17065e27d54ef752a10565e8078e1c4d63e16f95f5df11fd1f26de4925042a57b0dd678fe33d2e  fix-default-stubsdir.patch"