mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# 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.4
|
|
pkgrel=1
|
|
pkgdesc="OCaml Package Manager"
|
|
url="https://opam.ocaml.org"
|
|
arch="all !riscv64" # ocaml
|
|
license="LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
|
|
depends="curl patch unzip coreutils bubblewrap"
|
|
options="net !check" # The tests use bubblewrap which cannot be run inside docker
|
|
makedepends="tar ocaml-compiler-libs"
|
|
checkdepends="rsync bash diffutils"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/opam/archive/$pkgver.tar.gz"
|
|
subpackages="$pkgname-doc"
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--with-mccs
|
|
|
|
make -j1 lib-ext
|
|
make -j1 all
|
|
}
|
|
|
|
check() {
|
|
make tests
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
276fdbe4e114a0d23b9d4b7938d87bf39c06b4716fae601588da7d5d2d5d9b5c584855d96edfed2eb5ac8a36ee9431c4ea7d281c52acdab28b9a3bdcbf10ce57 opam-2.1.4.tar.gz
|
|
"
|