# Tanım: Haskell Stack aracı
# URL: https://github.com/commercialhaskell/stack
# Paketçi: milisarge
# Gerekler: 
# Grup: geliştirme

isim=stack-static
surum=1.9.1
devir=1
kaynak=(https://github.com/commercialhaskell/stack/releases/download/v${surum}/stack-$surum-linux-x86_64-static.tar.gz
		stack.bash)

derle() {
  cd "${SRC}"
  local d="stack-${surum}-linux-x86_64-static"
  mkdir -p "${PKG}"/usr/{{bin,share/licenses/"${isim}"},share/bash-completion/completions}
  cp "${d}/stack" "${PKG}/usr/bin"
  cp "${d}/LICENSE" "${PKG}/usr/share/licenses/${isim}/"
  cp "stack.bash" "${PKG}/usr/share/bash-completion/completions/stack"
}
