pkgname=julia-git-ghostscript_jll-src
pkgver=9.55.1+0
_commit=451660213194dadb7b8fe7c5eeb75d8ff3595ae8
pkgrel=1
pkgdesc="Ghostscript_jll.jl"
url="https://github.com/JuliaBinaryWrappers/Ghostscript_jll.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git ghostscript)
source=("git+https://github.com/JuliaBinaryWrappers/Ghostscript_jll.jl.git#commit=$_commit"
        jll.toml)
sha256sums=('007b4aaf1853fe58e8c2aba1835bec321cf0a726c536611c3812143c9d9be092'
            '131378471bb9342fb416cfbbbee3d344644f767834473d92d1ee7746ea54e95a')

build() {
  cd Ghostscript_jll.jl

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

package() {
  cd Ghostscript_jll.jl

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