summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-21 14:27:06 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-21 14:27:06 (GMT)
commit82b80f21366a927d19afaabafb57a420a52ad1d8 (patch)
tree9d8d983854fe76bbb0031c1a0afb6a433346224c
parentb4f94a8d2fcc230b794b7181533975bfbbee2b6e (diff)
downloadlinhes_pkgbuild-82b80f21366a927d19afaabafb57a420a52ad1d8.zip
linhes_pkgbuild-82b80f21366a927d19afaabafb57a420a52ad1d8.tar.gz
linhes_pkgbuild-82b80f21366a927d19afaabafb57a420a52ad1d8.tar.bz2
ocaml-topkg: dep of ocaml-integers
-rw-r--r--abs/extra/ocaml-topkg/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/abs/extra/ocaml-topkg/PKGBUILD b/abs/extra/ocaml-topkg/PKGBUILD
new file mode 100644
index 0000000..333d708
--- /dev/null
+++ b/abs/extra/ocaml-topkg/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Jürgen Hötzel <juergen@archlinux.org>
+pkgname=ocaml-topkg
+pkgver=0.9.1
+pkgrel=2
+pkgdesc="A packager for distributing OCaml software"
+arch=('x86_64')
+url="http://erratique.ch/software/topkg"
+license=('BSD')
+depends=('ocaml' 'ocaml-result')
+makedepends=('ocaml-findlib' 'ocamlbuild' 'opam' 'ocaml-compiler-libs')
+source=("http://erratique.ch/software/topkg/releases/topkg-${pkgver}.tbz")
+md5sums=('8978a0595db1a22e4251ec62735d4b84')
+
+build() {
+ cd "${srcdir}/topkg-${pkgver}"
+
+ pkg/pkg.ml build --pkg-name topkg
+}
+
+package() {
+ cd "${srcdir}/topkg-${pkgver}"
+
+ opam-installer --prefix="${pkgdir}/usr" \
+ --libdir="${pkgdir}$(ocamlc -where)" \
+ --docdir="${pkgdir}/usr/share/doc"
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ mv "${pkgdir}/usr/share/doc/topkg/LICENSE.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+}