PKGBUILD 1 KB
Newer Older
gnastyle's avatar
gnastyle committed
1 2 3
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
 
pkgname=cabal-install
gnastyle's avatar
gnastyle committed
4
pkgver=1.24.0.2
gnastyle's avatar
gnastyle committed
5
pkgrel=1
gnastyle's avatar
gnastyle committed
6 7 8 9
pkgdesc="The command-line interface for Cabal and Hackage."
url="http://hackage.haskell.org/package/cabal-install"
license=('custom:BSD3')
arch=('x86_64')
gnastyle's avatar
gnastyle committed
10
depends=('gmp' 'zlib' 'libffi')
gnastyle's avatar
gnastyle committed
11 12
makedepends=('ghc=7.10.3' 'haskell-http' 'haskell-mtl' 'haskell-network' 'haskell-network-uri'
             'haskell-random' 'haskell-stm' 'haskell-zlib')
gnastyle's avatar
gnastyle committed
13
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
gnastyle's avatar
gnastyle committed
14
sha256sums=('2ac8819238a0e57fff9c3c857e97b8705b1b5fef2e46cd2829e85d96e2a00fe0')
gnastyle's avatar
gnastyle committed
15 16 17 18
 
build() {
  cd cabal-install-${pkgver}
 
19
  sh bootstrap.sh --user
gnastyle's avatar
gnastyle committed
20 21 22 23 24
}
 
package() {
  cd cabal-install-${pkgver}
 
gnastyle's avatar
gnastyle committed
25
  install -Dm755 dist/build/cabal/cabal \
gnastyle's avatar
gnastyle committed
26
    ${pkgdir}/usr/bin/cabal
gnastyle's avatar
gnastyle committed
27
 
gnastyle's avatar
gnastyle committed
28
  install -Dm644 LICENSE \
gnastyle's avatar
gnastyle committed
29
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
gnastyle's avatar
gnastyle committed
30 31
 
  # add bash completion
gnastyle's avatar
gnastyle committed
32
  install -Dm644 bash-completion/cabal \
gnastyle's avatar
gnastyle committed
33
    ${pkgdir}/usr/share/bash-completion/completions/cabal
gnastyle's avatar
gnastyle committed
34
}