summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 25 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7d317f936a0..3f7c8966e0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}