Date: Saturday, February 4, 2023 @ 01:05:15 Author: felixonmars Revision: 1392291
archrelease: copy trunk to community-x86_64 Added: ocaml-base/repos/community-x86_64/PKGBUILD (from rev 1392290, ocaml-base/trunk/PKGBUILD) Deleted: ocaml-base/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 70 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 36 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-02-04 01:04:59 UTC (rev 1392290) +++ PKGBUILD 2023-02-04 01:05:15 UTC (rev 1392291) @@ -1,36 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Daniel Peukert <dan...@peukert.cc> -# Contributor: Jakob Gahde <j...@fmail.co.uk> - -_projectname='base' -pkgname="ocaml-$_projectname" -pkgver=0.15.0 -pkgrel=2 -pkgdesc='Full standard library replacement for OCaml' -arch=('x86_64') -url="https://github.com/janestreet/$_projectname" -license=('MIT') -depends=('ocaml>=4.14.0' 'ocaml-sexplib0') -makedepends=('dune' 'ocaml-compiler-libs') -options=('!strip') -source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz") -sha256sums=('56da1a3089ba94eb68aaa38a9c7ebc8ba4dcb290bbf8906bf68c463163560545') - -_sourcedirectory="$_projectname-$pkgver" - -build() { - cd "$srcdir/$_sourcedirectory/" - OCAMLPATH=/usr/lib/ocaml dune build --release -} - -package() { - cd "$srcdir/$_sourcedirectory/" - 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/" - rm -r "$pkgdir/usr/doc/" - - install -dm755 "$pkgdir/usr/share/licenses/$pkgname" - ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" -} Copied: ocaml-base/repos/community-x86_64/PKGBUILD (from rev 1392290, ocaml-base/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-02-04 01:05:15 UTC (rev 1392291) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Daniel Peukert <dan...@peukert.cc> +# Contributor: Jakob Gahde <j...@fmail.co.uk> + +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/base" +license=('MIT') +depends=('ocaml>=4.14.0' 'ocaml-sexplib0') +makedepends=('git' 'dune' 'ocaml-compiler-libs') +options=('!strip') +source=("git+https://github.com/janestreet/base.git#commit=$_commit") +sha256sums=('SKIP') + +build() { + cd base + OCAMLPATH=/usr/lib/ocaml dune build --release +} + +package() { + cd base + DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --release + + install -dm755 "$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" + ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +}