pkgname=julia-git-zygote-src
pkgver=0.7.12
_commit=b968807d648da0be7d1645373af35d8385ecda16
pkgrel=1
pkgdesc="Zygote.jl"
url="https://github.com/FluxML/Zygote.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git)
source=("git+https://github.com/FluxML/Zygote.jl.git#commit=$_commit")
sha256sums=('bd6fbddd24d8438bdeb81e3cfb2aa4f7204b63fda8a8dac1fd1eebaa2c2b611f')

package() {
  cd Zygote.jl

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