blob: 2a9f1d73a8e7d1ccb539f5ad0f3e826e1deb35d0 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Michael Zuo <muh.muhten@gmail.com>
# Contributor: Sora Morimoto <sora@morimoto.io>
# Contributor: Anil Madhavapeddy <anil@recoil.org>
# Contributor: omni <omni+alpine@hack.org>
# Maintainer: Kate <kit.ty.kate@disroot.org>
pkgname=opam
pkgver=2.1.5
pkgrel=2
pkgdesc="OCaml Package Manager"
url="https://opam.ocaml.org"
arch="all !loongarch64" # ocaml 4+5
license="LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
depends="curl patch unzip coreutils bubblewrap"
options="!check" # The tests use bubblewrap which cannot be run inside docker
makedepends="dune tar ocaml-compiler-libs"
checkdepends="rsync bash diffutils"
source="https://github.com/ocaml/opam/releases/download/$pkgver/opam-full-$pkgver.tar.gz
makefile.patch
"
subpackages="$pkgname-doc"
builddir="$srcdir/opam-full-$pkgver"
case "$CARCH" in
riscv64)
makedepends="${makedepends//ocaml/ocaml5}"
;;
esac
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-mccs
make -j1 DUNE=/usr/bin/dune lib-ext all
}
check() {
make tests
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
sha512sums="
e4e33fcee0a9f922f8b43c6b095554a946559a2c50341326d21cca0f24fc7105c0de01db204b408240b12b267c9929435e2c511adf140618c91873f10444ae90 opam-full-2.1.5.tar.gz
0e9b1ccac3dc6b9f215a01ac9c30ca95a254240752af7ab9c6368b525e108b4b55cc460ca7ba8fcccca33103247a90f12779649d2823643f1e856cb3a8de50f0 makefile.patch
"
|