# Maintainer: Jan Rydzewski # Maintainer: amesgen pkgname='dhall-json-bin' pkgver=1.7.9 pkgrel=1 pkgdesc="Dhall to JSON compiler and a Dhall to YAML compiler" arch=('x86_64') url='https://github.com/dhall-lang/dhall-haskell' license=('BSD') conflicts=('dhall-json') _dhall_ver=1.40.2 source=("dhall-json-$_dhall_ver-$pkgver.tar.bz2::https://github.com/dhall-lang/dhall-haskell/releases/download/$_dhall_ver/dhall-json-$pkgver-x86_64-linux.tar.bz2" "LICENSE-$pkgver::https://raw.githubusercontent.com/dhall-lang/dhall-haskell/$_dhall_ver/dhall-json/LICENSE") sha256sums=('90b2a0da0e30c0637254382c5697a1df75d26d0d6aae1239320f1df74950fe23' '91f68ca8606e7ae993148187e397e20431aa6d870ac9fcc70330a0479468eef9') package() { install -Dm644 LICENSE-$pkgver "$pkgdir/usr/share/licenses/$pkgname/LICENSE" for f in dhall-to-json dhall-to-yaml json-to-dhall; do install -Dm755 "$srcdir/bin/$f" -t "$pkgdir/usr/bin/" _install_completion_script $f bash bash-completion/completions/$f _install_completion_script $f zsh zsh/site-functions/_$f _install_completion_script $f fish fish/vendor_completions.d/$f.fish done } _install_completion_script() { install -Dm644 <("$pkgdir/usr/bin/$1" --$2-completion-script "/usr/bin/$1") "$pkgdir/usr/share/$3" }