desktop/cabal-install/PKGBUILD
2016-03-03 23:02:06 +01:00

35 lines
916 B
Bash

# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
pkgname=cabal-install
pkgver=1.22.9.0
pkgrel=1
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' 'haskell-random' 'haskell-stm')
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
sha256sums=('874035e5730263653c7aa459f270efbffc06da92ea0c828e09ebc04400e94940')
build() {
cd cabal-install-${pkgver}
./bootstrap.sh
}
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
}