pkgname=julia-git-gperf_jll-src
pkgver=3.3.0+0
_commit=5b64732077f6719eb21025f2278d533bcb3e6929
pkgrel=2
pkgdesc="gperf_jll.jl"
url="https://github.com/JuliaBinaryWrappers/gperf_jll.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git gperf)
source=("git+https://github.com/JuliaBinaryWrappers/gperf_jll.jl.git#commit=$_commit"
        jll.toml)
sha256sums=('b296ad2100a35e06ede9c13043802476f4ee5f7a6181e4ad3cbe246f4124d44d'
            'cabec567b27e44e1c3f892fbd3a9eaa2644452fb380dbd0150900d23d7565c22')

build() {
  cd gperf_jll.jl

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

package() {
  cd gperf_jll.jl

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