diff options
author | Daniel Peukert | 2023-12-10 11:45:33 +0100 |
---|---|---|
committer | Daniel Peukert | 2023-12-10 11:45:33 +0100 |
commit | 10f312a82985807be51f6f90aee652c4e5848252 (patch) | |
tree | 2571bc612cecc782834a71741dae26fb969e9ced | |
parent | 8f25af9ee47110cfbcda1fdce289eabebad550c6 (diff) | |
download | aur-10f312a82985807be51f6f90aee652c4e5848252.tar.gz |
Update ocaml-utop to 2.13.1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 28 | ||||
-rw-r--r-- | PKGBUILD | 22 |
3 files changed, 38 insertions, 29 deletions
@@ -1,22 +1,23 @@ pkgbase = ocaml-utop pkgdesc = Universal toplevel for OCaml - pkgver = 2.12.1 - pkgrel = 2 + pkgver = 2.13.1 + pkgrel = 1 url = https://github.com/ocaml-community/utop arch = x86_64 arch = aarch64 license = BSD - makedepends = cppo>=1.1.2 - makedepends = dune>=1.0.0 - depends = ocaml>=4.08.0 + checkdepends = ocaml-alcotest + depends = ocaml>=4.11.0 + depends = dune>=3.9.0 + depends = cppo>=1.1.2 depends = ocaml-findlib>=1.7.2 depends = ocaml-lambda-term>=3.1.0 - depends = ocaml-logs + depends = ocaml-logs_lwt depends = ocaml-lwt depends = ocaml-react>=1.0.0 depends = ocaml-zed>=3.2.0 options = !strip - source = ocaml-utop-2.12.1-2.tar.gz::https://github.com/ocaml-community/utop/archive/2.12.1.tar.gz - sha512sums = cc52bdb2a58141e6f7b678c93f69b0aa5ca4c628cb6841e02e6a783191a917bd838c06682d55f4f455a01a7004e43b5193d8574968b8400050b0f7b5a102ca3a + source = ocaml-utop-2.13.1.tar.gz::https://github.com/ocaml-community/utop/archive/2.13.1.tar.gz + sha512sums = a84a6a96767a3ffa3eaf45495f132536fcc4c81028cfb4f68e823266d0d6e2945d114ca6e8a0760eab93e830500004101499e13669edf1f59a7af06f44b33fd2 pkgname = ocaml-utop diff --git a/.gitignore b/.gitignore index 82b3c183d5d4..004b0a3a8706 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,14 @@ -# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore -*.tar -*.tar.* -*.rpm -*.jar -*.exe -*.msi -*.zip -*.tgz -*.log -*.log.* -*.sig - -*/ +# Only exclude files from the root of the package repo, as some AUR helpers download sources into the directory of the repo, +# which causes the gitignore file to apply to them too, which breaks some builds +# Based on https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +/*.tar +/*.tar.* +/*.rpm +/*.jar +/*.exe +/*.msi +/*.zip +/*.tgz +/*.log +/*.log.* +/*.sig @@ -4,18 +4,17 @@ # Contributor: Taylor Venable <taylor@metasyntax.net> _projectname='utop' pkgname="ocaml-$_projectname" -pkgver='2.12.1' -pkgrel='2' +pkgver='2.13.1' +pkgrel='1' pkgdesc='Universal toplevel for OCaml' -# If you're running on aarch64, you have to add it to the arch array of the cppo, ocaml-biniou, ocaml-cmdliner, ocaml-easy-format and ocaml-yojson AUR dependencies arch=('x86_64' 'aarch64') url="https://github.com/ocaml-community/$_projectname" license=('BSD') -depends=('ocaml>=4.08.0' 'ocaml-findlib>=1.7.2' 'ocaml-lambda-term>=3.1.0' 'ocaml-logs' 'ocaml-lwt' 'ocaml-react>=1.0.0' 'ocaml-zed>=3.2.0') -makedepends=('cppo>=1.1.2' 'dune>=1.0.0') +depends=('ocaml>=4.11.0' 'dune>=3.9.0' 'cppo>=1.1.2' 'ocaml-findlib>=1.7.2' 'ocaml-lambda-term>=3.1.0' 'ocaml-logs_lwt' 'ocaml-lwt' 'ocaml-react>=1.0.0' 'ocaml-zed>=3.2.0') +checkdepends=('ocaml-alcotest') options=('!strip') -source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") -sha512sums=('cc52bdb2a58141e6f7b678c93f69b0aa5ca4c628cb6841e02e6a783191a917bd838c06682d55f4f455a01a7004e43b5193d8574968b8400050b0f7b5a102ca3a') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha512sums=('a84a6a96767a3ffa3eaf45495f132536fcc4c81028cfb4f68e823266d0d6e2945d114ca6e8a0760eab93e830500004101499e13669edf1f59a7af06f44b33fd2') _sourcedirectory="$_projectname-$pkgver" @@ -29,10 +28,19 @@ 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 + for _folder in "$pkgdir/usr/share/doc/"*; do + mv "$_folder" "$pkgdir/usr/share/doc/ocaml-$(basename "$_folder")" + done + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" ln -sf "/usr/share/doc/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |