diff options
author | Daniel Peukert | 2020-04-10 03:21:45 +0200 |
---|---|---|
committer | Daniel Peukert | 2020-04-10 03:21:45 +0200 |
commit | f954656e732d0ec9fa032e04633fadae422b610f (patch) | |
tree | c48862008605e524fc4fded2b3df5176163be083 | |
parent | 5323f693d152d46eb01b517bbafd0520a0ebcaa3 (diff) | |
download | aur-f954656e732d0ec9fa032e04633fadae422b610f.tar.gz |
Added ocaml-utop & dependencies
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .editorconfig | 8 | ||||
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | PKGBUILD | 45 |
4 files changed, 61 insertions, 32 deletions
@@ -1,20 +1,22 @@ pkgbase = ocaml-zed - pkgdesc = An abstract engine for text editing - pkgver = 2.0.5 + pkgdesc = Abstract engine for text edition in OCaml + pkgver = 2.0.7 pkgrel = 1 - url = https://github.com/diml/zed - arch = i686 + url = https://github.com/ocaml-community/zed arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 license = BSD - makedepends = dune - depends = glibc - depends = ocaml - depends = ocaml-camomile + makedepends = dune>=1.1.0 + depends = ocaml>=4.02.3 + depends = ocaml-camomile>=1.0.1 depends = ocaml-react - depends = ocaml-charinfo_width + depends = ocaml-charinfo_width>=1.1.0 options = !strip - source = zed-2.0.5.tar.gz::https://github.com/diml/zed/archive/2.0.5.tar.gz - sha512sums = 64b47b80dcea4d8016ce0203684511f0be9ac3adb8393e0755d847483690c6a56b2147ca217e9419de715a8513a59b821767969ceab418f11bcf30273b62724b + source = ocaml-zed-2.0.7-1.tar.gz::https://github.com/ocaml-community/zed/archive/2.0.7.tar.gz + sha256sums = 21f333604c54ac9ab324e3174218f5a1aaa4bb391abe1b5544a51f292e147929 pkgname = ocaml-zed - diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..a467ee9a97a6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..82b3c183d5d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +*/ @@ -1,31 +1,36 @@ -# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> +# Maintainer: Daniel Peukert <dan.peukert@gmail.com> +# Contributor: Jakob Gahde <j5lx@fmail.co.uk> # Contributor: wenLiangcan <boxeed at gmail dot com> # Contributor: Taylor Venable <taylor@metasyntax.net> - -pkgname=ocaml-zed -pkgver=2.0.5 -pkgrel=1 -pkgdesc="An abstract engine for text editing" -arch=('i686' 'x86_64') -url='https://github.com/diml/zed' +_projectname='zed' +pkgname="ocaml-$_projectname" +pkgver='2.0.7' +pkgrel='1' +pkgdesc='Abstract engine for text edition in OCaml' +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/ocaml-community/$_projectname" license=('BSD') -depends=('glibc' 'ocaml' 'ocaml-camomile' 'ocaml-react' 'ocaml-charinfo_width') -makedepends=('dune') +depends=('ocaml>=4.02.3' 'ocaml-camomile>=1.0.1' 'ocaml-react' 'ocaml-charinfo_width>=1.1.0') +makedepends=('dune>=1.1.0') options=('!strip') -source=("zed-${pkgver}.tar.gz::https://github.com/diml/zed/archive/${pkgver}.tar.gz") -sha512sums=('64b47b80dcea4d8016ce0203684511f0be9ac3adb8393e0755d847483690c6a56b2147ca217e9419de715a8513a59b821767969ceab418f11bcf30273b62724b') +source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('21f333604c54ac9ab324e3174218f5a1aaa4bb391abe1b5544a51f292e147929') -build() { - cd "${srcdir}/zed-${pkgver}" +_sourcedirectory="$_projectname-$pkgver" - dune build -p zed +build() { + cd "$srcdir/$_sourcedirectory/" + dune build -p "$_projectname" --verbose } - package() { - cd "${srcdir}/zed-${pkgver}" + cd "$srcdir/$_sourcedirectory/" + DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml' + + install -dm755 "$pkgdir/usr/share/doc/$pkgname" + mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/" + rm -r "$pkgdir/usr/doc/" - dune install --destdir "${pkgdir}" - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/" + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" + ln -sf "/usr/share/doc/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |