diff options
author | Daniel Peukert | 2023-08-11 14:19:57 +0200 |
---|---|---|
committer | Daniel Peukert | 2023-08-11 14:19:57 +0200 |
commit | c0865a98e5597e3936570455a54d8b86cfd8fddb (patch) | |
tree | b6201a574d2ad3c8eb2eaa4b329ad4c0d5004498 | |
parent | c554e0d77decdcb99a32906bb25f4f617f538145 (diff) | |
download | aur-c0865a98e5597e3936570455a54d8b86cfd8fddb.tar.gz |
Enable tests for ocaml-zed
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -1,11 +1,12 @@ pkgbase = ocaml-zed pkgdesc = Abstract engine for text edition in OCaml pkgver = 3.2.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/ocaml-community/zed arch = x86_64 arch = aarch64 license = BSD + checkdepends = ocaml-alcotest makedepends = dune>=3.0.0 depends = ocaml>=4.02.3 depends = ocaml-react @@ -5,13 +5,14 @@ _projectname='zed' pkgname="ocaml-$_projectname" pkgver='3.2.3' -pkgrel='1' +pkgrel='2' pkgdesc='Abstract engine for text edition in OCaml' arch=('x86_64' 'aarch64') url="https://github.com/ocaml-community/$_projectname" license=('BSD') depends=('ocaml>=4.02.3' 'ocaml-react' 'ocaml-result' 'ocaml-uchar' 'ocaml-uuseg' 'ocaml-uucp>=2.0.0' 'ocaml-uutf') makedepends=('dune>=3.0.0') +checkdepends=('ocaml-alcotest') options=('!strip') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha512sums=('637f75129550f6459417549d44bed16bdc62721d2e9e0c6bb5bfab30c5bc6478de15faece8c091b56f238375cb79a7bc176375400e543120bb31d7ea626b7c5b') @@ -23,6 +24,11 @@ build() { dune build --release --verbose } +check() { + cd "$srcdir/$_sourcedirectory/" + dune runtest --release --verbose +} + package() { cd "$srcdir/$_sourcedirectory/" DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --docdir '/usr/share/doc' --mandir '/usr/share/man' --release --verbose |