Date: Saturday, February 4, 2023 @ 01:04:59 Author: felixonmars Revision: 1392290
upgpkg: ocaml-base 0.15.1-1 Modified: ocaml-base/trunk/PKGBUILD ----------+ PKGBUILD | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-04 00:53:01 UTC (rev 1392289) +++ PKGBUILD 2023-02-04 01:04:59 UTC (rev 1392290) @@ -2,33 +2,31 @@ # Contributor: Daniel Peukert <[email protected]> # Contributor: Jakob Gahde <[email protected]> -_projectname='base' -pkgname="ocaml-$_projectname" -pkgver=0.15.0 -pkgrel=2 +pkgname=ocaml-base +pkgver=0.15.1 +_commit=adb4623168f6cdc26a7e9e953a82b9ceb16d1e19 +pkgrel=1 pkgdesc='Full standard library replacement for OCaml' arch=('x86_64') -url="https://github.com/janestreet/$_projectname" +url="https://github.com/janestreet/base" license=('MIT') depends=('ocaml>=4.14.0' 'ocaml-sexplib0') -makedepends=('dune' 'ocaml-compiler-libs') +makedepends=('git' 'dune' 'ocaml-compiler-libs') options=('!strip') -source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz") -sha256sums=('56da1a3089ba94eb68aaa38a9c7ebc8ba4dcb290bbf8906bf68c463163560545') +source=("git+https://github.com/janestreet/base.git#commit=$_commit") +sha256sums=('SKIP') -_sourcedirectory="$_projectname-$pkgver" - build() { - cd "$srcdir/$_sourcedirectory/" + cd base OCAMLPATH=/usr/lib/ocaml dune build --release } package() { - cd "$srcdir/$_sourcedirectory/" + cd base DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --release install -dm755 "$pkgdir/usr/share/doc/$pkgname" - mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/" + mv "$pkgdir/usr/doc/base/"* "$pkgdir/usr/share/doc/$pkgname/" rm -r "$pkgdir/usr/doc/" install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
