desktop/cabal-install/PKGBUILD

36 lines
1.0 KiB
Bash

# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
pkgname=cabal-install
pkgver=1.22.9.0
pkgrel=2
pkgdesc="The command-line interface for Cabal and Hackage."
url="http://hackage.haskell.org/package/cabal-install"
license=('custom:BSD3')
arch=('x86_64')
depends=('gmp' 'zlib' 'libffi')
makedepends=("ghc=7.10.3" "haskell-http" "haskell-mtl" "haskell-network" "haskell-network-uri"
"haskell-random" "haskell-stm" "haskell-zlib")
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
sha256sums=('874035e5730263653c7aa459f270efbffc06da92ea0c828e09ebc04400e94940')
build() {
cd cabal-install-${pkgver}
sh bootstrap.sh --user
}
package() {
cd cabal-install-${pkgver}
install -Dm755 dist/build/cabal/cabal \
${pkgdir}/usr/bin/cabal
install -Dm644 LICENSE \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
# add bash completion
install -Dm644 bash-completion/cabal \
${pkgdir}/usr/share/bash-completion/completions/cabal
}