summaryrefslogtreecommitdiffstats
path: root/abs/extra/opam
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-21 14:19:20 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-21 14:19:20 (GMT)
commit85133ec7a9c4b9b9e3f57ac5b25ca21a588e48a1 (patch)
tree7c270aaaa925c67671323d31b3d31e3943189b5d /abs/extra/opam
parentef1ddf53debb4c64aed0fa63b4382e9ec33ef3e4 (diff)
downloadlinhes_pkgbuild-85133ec7a9c4b9b9e3f57ac5b25ca21a588e48a1.zip
linhes_pkgbuild-85133ec7a9c4b9b9e3f57ac5b25ca21a588e48a1.tar.gz
linhes_pkgbuild-85133ec7a9c4b9b9e3f57ac5b25ca21a588e48a1.tar.bz2
opam: dep of ocaml-integers
Diffstat (limited to 'abs/extra/opam')
-rw-r--r--abs/extra/opam/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/abs/extra/opam/PKGBUILD b/abs/extra/opam/PKGBUILD
new file mode 100644
index 0000000..0db29ee
--- /dev/null
+++ b/abs/extra/opam/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
+# Contributor: Vincent B. <vb@luminar.eu.org>
+
+pkgname=opam
+pkgver=2.0.3
+pkgrel=1
+pkgdesc='OCaml package manager'
+arch=(x86_64)
+url='https://opam.ocaml.org/'
+license=(GPL)
+depends=(bubblewrap ocaml-compiler-libs unzip)
+optdepends=('darcs: For downloading packages with darcs'
+ 'git: For downloading packages with git'
+ 'mercurial: For downloading packages with mercurial'
+ 'rsync: For downloading packages with rsync')
+source=("https://github.com/ocaml/opam/releases/download/$pkgver/opam-full-$pkgver.tar.gz")
+sha256sums=('0589da4da184584a5445d59385009536534f60bc0e27772245b2f49e5fa8f0e2')
+
+build() {
+ cd "opam-full-$pkgver"
+ ./configure --prefix=/usr
+ make lib-ext all -j1 \
+ OCAMLC='ocamlc -unsafe-string' \
+ OCAMLOPT='ocamlopt -unsafe-string'
+}
+
+package() {
+ make -C "opam-full-$pkgver" DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir/usr/share/doc"
+ mv "$pkgdir/usr/doc/opam-installer" "$pkgdir/usr/share/doc/opam"
+ rmdir "$pkgdir/usr/doc"
+}
+
+# getver: opam.ocaml.org
+# vim: ts=2 sw=2 et: