summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2018-05-18 00:43:20 +0200
committerJakob Gahde2018-05-18 00:43:20 +0200
commit3600dbea613ce7905a870781a902b6da6af03adf (patch)
tree26eab6579ec596fb987e8dab863c75b107797d28
parentbed3d000472849c2b03e122fe3f9bcef6ff63e10 (diff)
downloadaur-3600dbea613ce7905a870781a902b6da6af03adf.tar.gz
ocaml-zed 1.6-1: New version
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD29
2 files changed, 17 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1a0f77f45d9..b1b2d155da0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,20 @@
# Generated by mksrcinfo v8
-# Sun Jul 16 11:06:03 UTC 2017
+# Thu May 17 22:42:01 UTC 2018
pkgbase = ocaml-zed
pkgdesc = An abstract engine for text editing
- pkgver = 1.4
+ pkgver = 1.6
pkgrel = 1
url = https://github.com/diml/zed
arch = i686
arch = x86_64
license = BSD
- makedepends = ocaml-findlib
+ makedepends = dune
depends = ocaml
depends = ocaml-camomile
depends = ocaml-react
options = !strip
- source = https://github.com/diml/zed/archive/1.4.tar.gz
- md5sums = 47661250ed1b3e12c886d19c1a019675
+ source = https://github.com/diml/zed/archive/1.6.tar.gz
+ md5sums = db050d98f4b7051530e023a5e2c4f438
pkgname = ocaml-zed
diff --git a/PKGBUILD b/PKGBUILD
index b8d3f96b492..9501472c6fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,36 +2,31 @@
# Contributor: wenLiangcan <boxeed at gmail dot com>
# Contributor: Taylor Venable <taylor@metasyntax.net>
-_pkgname='zed'
-pkgname="ocaml-${_pkgname}"
-pkgver=1.4
+pkgname=ocaml-zed
+pkgver=1.6
pkgrel=1
pkgdesc="An abstract engine for text editing"
arch=('i686' 'x86_64')
url='https://github.com/diml/zed'
license=('BSD')
depends=('ocaml' 'ocaml-camomile' 'ocaml-react')
-makedepends=('ocaml-findlib')
+makedepends=('dune')
options=('!strip')
source=("https://github.com/diml/zed/archive/${pkgver}.tar.gz")
-md5sums=('47661250ed1b3e12c886d19c1a019675')
+md5sums=('db050d98f4b7051530e023a5e2c4f438')
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- ./configure
+ cd "${srcdir}/zed-${pkgver}"
- env DESTDIR="${pkgdir}" \
- OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)" \
- make
+ jbuilder build
}
package() {
- mkdir -p "${pkgdir}/$(ocamlfind printconf destdir)"
- mkdir -p "${pkgdir}/$(ocamlfind printconf destdir)/stublibs"
- cd "${srcdir}/${_pkgname}-${pkgver}"
- env DESTDIR="${pkgdir}" \
- OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)" \
- make install
- install -Dm 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ cd "${srcdir}/zed-${pkgver}"
+
+ mkdir -p "${pkgdir}$(ocamlfind printconf destdir)" "${pkgdir}/usr/share"
+ jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}