pkgname=julia-git-colorbrewer-src
pkgver=0.4.2
_commit=54b0a8be1c78fdc20462f75d00217300d73b4b71
pkgrel=1
pkgdesc="ColorBrewer.jl"
url="https://github.com/timothyrenner/ColorBrewer.jl.git"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git)
source=("git+https://github.com/timothyrenner/ColorBrewer.jl.git#commit=$_commit"
        Project.toml)
sha256sums=('e094e833673a553d6f9ba8531212f98aac263e8db7a610103c91d1bbe86006b9'
            '3279fb6e77709dd3e627859693ebcda633d64a6ae7ec75ffa89a9cb2faf06e97')

prepare() {
  cd ColorBrewer.jl

  cp -n ../Project.toml .
  rm REQUIRE
}

package() {
  cd ColorBrewer.jl

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