pkgname=julia-git-micromamba_jll-src
pkgver=2.3.1+0
_commit=b83ae950c2a1076a6b0f47707e888ae8d4208dd0
pkgrel=2
pkgdesc="micromamba_jll.jl"
url="https://github.com/JuliaBinaryWrappers/micromamba_jll.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git micromamba)
source=("git+https://github.com/JuliaBinaryWrappers/micromamba_jll.jl.git#commit=$_commit"
        jll.toml)
sha256sums=('4a534f57f4818ae49fa22c039b493560716dc071879235be60720be83f8f0752'
            '20dbacda0dfb44cc3e7ff9420e069d78849b1905e27098cda9d38083b30c672d')

build() {
  cd micromamba_jll.jl

  julia /usr/lib/julia/julia-gen-jll.jl micromamba_jll ../jll.toml
}

package() {
  cd micromamba_jll.jl

  JULIA_INSTALL_SRCPKG=1 . /usr/lib/julia/julia-install-pkg.sh micromamba_jll "${pkgdir}" "${pkgname}" julia-git
}
