summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
-rw-r--r--libdir.patch36
3 files changed, 19 insertions, 65 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 09763e85437..af96c282f5b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,20 @@
# Generated by mksrcinfo v8
-# Tue Jun 6 12:21:42 UTC 2017
+# Thu Jun 28 21:44:13 UTC 2018
pkgbase = ocaml-ppx_driver
pkgdesc = Feature-full driver for OCaml AST transformers
- pkgver = 113.33.03
+ pkgver = 0.11.0
pkgrel = 1
+ epoch = 1
url = https://github.com/janestreet/ppx_driver
arch = i686
arch = x86_64
license = Apache
- makedepends = ocaml-findlib
- makedepends = ocaml-js-build-tools
- makedepends = opam
+ makedepends = dune
depends = ocaml
- depends = ocaml-ppx_core
- depends = ocaml-ppx_optcomp
+ depends = ocaml-ppxlib
options = !strip
- source = https://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_driver-113.33.03.tar.gz
- source = libdir.patch
- md5sums = 9e87c2d1ea772718637afc335e88dc45
- md5sums = 7f0a951f1ac87385272ea7a6dd58762a
+ source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/ppx_driver-v0.11.0.tar.gz
+ md5sums = 706cda8f743dd8b81aaa87f7261af252
pkgname = ocaml-ppx_driver
diff --git a/PKGBUILD b/PKGBUILD
index 687b41f372f..2c2cf7a4163 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,29 @@
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
pkgname=ocaml-ppx_driver
-pkgver=113.33.03
+pkgver=0.11.0
pkgrel=1
+epoch=1
pkgdesc="Feature-full driver for OCaml AST transformers"
arch=('i686' 'x86_64')
url="https://github.com/janestreet/ppx_driver"
license=('Apache')
-depends=('ocaml' 'ocaml-ppx_core' 'ocaml-ppx_optcomp')
-makedepends=('ocaml-findlib' 'ocaml-js-build-tools' 'opam')
+depends=('ocaml' 'ocaml-ppxlib')
+makedepends=('dune')
options=('!strip')
-source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+\.[0-9]+").tar.gz"
- "libdir.patch")
-md5sums=('9e87c2d1ea772718637afc335e88dc45'
- '7f0a951f1ac87385272ea7a6dd58762a')
-
-prepare() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
-
- patch -Np1 < "${srcdir}/libdir.patch"
-}
+source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ppx_driver-v${pkgver}.tar.gz")
+md5sums=('706cda8f743dd8b81aaa87f7261af252')
build() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+ cd "${srcdir}/ppx_driver-v${pkgver}"
- ./configure --prefix=/usr
- make
+ jbuilder build
}
package() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+ cd "${srcdir}/ppx_driver-v${pkgver}"
- make install PREFIX="${pkgdir}/usr" LIBDIR="${pkgdir}$(ocamlc -where)"
+ install -dm755 "${pkgdir}$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share"
+ jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind -printconf destdir)"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}
diff --git a/libdir.patch b/libdir.patch
deleted file mode 100644
index 6284fcd558b..00000000000
--- a/libdir.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -aur package.pristine/Makefile package.new/Makefile
---- package.pristine/Makefile 2016-02-06 01:55:14.650150309 +0100
-+++ package.new/Makefile 2016-02-06 01:57:56.012174364 +0100
-@@ -29,26 +29,26 @@
- ocaml -I js-utils js-utils/gen_install.ml
-
- install: $(NAME).install
-- opam-installer -i --prefix $(PREFIX) $(NAME).install
-+ opam-installer -i --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- uninstall: $(NAME).install
-- opam-installer -u --prefix $(PREFIX) $(NAME).install
-+ opam-installer -u --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- reinstall: $(NAME).install
-- opam-installer -u --prefix $(PREFIX) $(NAME).install &> /dev/null || true
-- opam-installer -i --prefix $(PREFIX) $(NAME).install
-+ opam-installer -u --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install &> /dev/null || true
-+ opam-installer -i --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- bin.tar.gz: $(NAME).install
- rm -rf _install
- mkdir _install
-- opam-installer -i --prefix _install $(NAME).install
-+ opam-installer -i --prefix _install --libdir $(LIBDIR) $(NAME).install
- tar czf bin.tar.gz -C _install .
- rm -rf _install
-
- bin.lzo: $(NAME).install
- rm -rf _install
- mkdir _install
-- opam-installer -i --prefix _install $(NAME).install
-+ opam-installer -i --prefix _install --libdir $(LIBDIR) $(NAME).install
- cd _install && lzop -1 -P -o ../bin.lzo `find . -type f`
- rm -rf _install
-