desktop/cabal-install/PKGBUILD
2017-01-27 00:12:28 +01:00

35 lines
1.0 KiB
Bash

# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
pkgname=cabal-install
pkgver=1.24.0.2
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=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=('2ac8819238a0e57fff9c3c857e97b8705b1b5fef2e46cd2829e85d96e2a00fe0')
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
}