pkgname=julia-git-rmath_jll-src
pkgver=0.5.2+0
_commit=a7f42b8109da30acb298a7ba8f56d58840fab4d9
pkgrel=1
pkgdesc="Rmath_jll.jl"
url="https://github.com/JuliaBinaryWrappers/Rmath_jll.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git rmath-julia)
source=("git+https://github.com/JuliaBinaryWrappers/Rmath_jll.jl.git#commit=$_commit"
        jll.toml)
sha256sums=('c28d8f51f469911bc9c60014635f06f69d72dce7fac39e9722f5f7f1079c66bd'
            '98619edca1ea46d3630f835f089fcf207a2061b93197a6e8bd80f9354ac50ca5')

build() {
  cd Rmath_jll.jl

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

package() {
  cd Rmath_jll.jl

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