diff options
author | Jakob Gahde | 2018-06-28 22:21:12 +0200 |
---|---|---|
committer | Jakob Gahde | 2018-06-28 22:21:12 +0200 |
commit | fa5e5845341cd0ae326c681027a29db8c2931fb9 (patch) | |
tree | 17827920ac5e1913ac5a521e67bf9a88c963ce3f | |
parent | d67908252de0d74f1a37a925b5961ae6c19a7ac9 (diff) | |
download | aur-fa5e5845341cd0ae326c681027a29db8c2931fb9.tar.gz |
ocaml-textutils 1:0.11.0-1: New version
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | libdir.patch | 36 |
3 files changed, 21 insertions, 73 deletions
@@ -1,34 +1,24 @@ # Generated by mksrcinfo v8 -# Sun Jul 16 10:51:01 UTC 2017 +# Thu Jun 28 20:20:50 UTC 2018 pkgbase = ocaml-textutils pkgdesc = Text output utilities - pkgver = 113.33.03 + pkgver = 0.11.0 pkgrel = 1 + epoch = 1 url = https://github.com/janestreet/textutils arch = i686 arch = x86_64 license = Apache - makedepends = ocaml-findlib - makedepends = ocaml-js-build-tools - makedepends = opam + makedepends = dune depends = ocaml - depends = ocaml-bin_prot depends = ocaml-core - depends = ocaml-fieldslib - depends = ocaml-ppx_assert - depends = ocaml-ppx_bench - depends = ocaml-ppx_driver - depends = ocaml-ppx_expect - depends = ocaml-ppx_inline_test depends = ocaml-ppx_jane - depends = ocaml-sexplib - depends = ocaml-typerep - depends = ocaml-variantslib + depends = ocaml-textutils_kernel + depends = ocaml-migrate-parsetree + depends = ocaml-ppxlib options = !strip - source = https://ocaml.janestreet.com/ocaml-core/113.33/files/textutils-113.33.03.tar.gz - source = libdir.patch - md5sums = 7b4a62f49660363aafd866b146522c44 - md5sums = 7f0a951f1ac87385272ea7a6dd58762a + source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/textutils-v0.11.0.tar.gz + md5sums = 58aede37fcd2e99d90726b30ee36bf1e pkgname = ocaml-textutils @@ -1,35 +1,29 @@ # Maintainer: Jakob Gahde <j5lx@fmail.co.uk> pkgname=ocaml-textutils -pkgver=113.33.03 +pkgver=0.11.0 pkgrel=1 +epoch=1 pkgdesc="Text output utilities" arch=('i686' 'x86_64') url="https://github.com/janestreet/textutils" license=('Apache') -depends=('ocaml' 'ocaml-bin_prot' 'ocaml-core' 'ocaml-fieldslib' 'ocaml-ppx_assert' 'ocaml-ppx_bench' 'ocaml-ppx_driver' 'ocaml-ppx_expect' 'ocaml-ppx_inline_test' 'ocaml-ppx_jane' 'ocaml-sexplib' 'ocaml-typerep' 'ocaml-variantslib') -makedepends=('ocaml-findlib' 'ocaml-js-build-tools' 'opam') +depends=('ocaml' 'ocaml-core' 'ocaml-ppx_jane' 'ocaml-textutils_kernel' 'ocaml-migrate-parsetree' 'ocaml-ppxlib') +makedepends=('dune') options=('!strip') -source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-${pkgver}.tar.gz" - "libdir.patch") -md5sums=('7b4a62f49660363aafd866b146522c44' - '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/textutils-v${pkgver}.tar.gz") +md5sums=('58aede37fcd2e99d90726b30ee36bf1e') build() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/textutils-v${pkgver}" - ./configure --prefix /usr - make + jbuilder build } package() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/textutils-v${pkgver}" - make install 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 6284fcd558b0..000000000000 --- 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 - |