pkgname=julia-git-imath_jll-src
pkgver=3.2.2+0
_commit=09ccd7b086895ac42394a7c14e6884a2db51f678
pkgrel=1
pkgdesc="Imath_jll.jl"
url="https://github.com/JuliaBinaryWrappers/Imath_jll.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git imath)
source=("git+https://github.com/JuliaBinaryWrappers/Imath_jll.jl.git#commit=$_commit"
        jll.toml)
sha256sums=('c43e840560794b55837f43d576c459bff8d21c31fd3aa43bea1dda5d7d0b98fc'
            'ca4963de6dea56362934006d19e47bd9640b6194c4a345c2de56de504fd5444a')

build() {
  cd Imath_jll.jl

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

package() {
  cd Imath_jll.jl

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