summaryrefslogtreecommitdiff
path: root/extra/cabal-install/PKGBUILD
blob: ae8403ea81bd3f3d75996fbbc88efa9884cfcffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Thomas Dziedzic <gostrc@gmail.com>
# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>

pkgname=cabal-install
pkgver=1.18.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=('i686' 'x86_64')
#depends=('ghc' 'gmp' 'zlib')
makedepends=('ghc')
depends=('gmp' 'zlib')
source=("http://hackage.haskell.org/packages/archive/cabal-install/${pkgver}/cabal-install-${pkgver}.tar.gz")
md5sums=('e7e46406d43539616388aeafa01c689d')

build() {
  cd cabal-install-${pkgver}

  sh bootstrap.sh --user
}

package() {
  cd cabal-install-${pkgver}

  install -D -m755 /build/.cabal/bin/cabal $pkgdir/usr/bin/cabal
  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
    
  # add bash completion
  install -d ${pkgdir}/usr/share/bash-completion/completions
  install -m644 bash-completion/cabal \
    ${pkgdir}/usr/share/bash-completion/completions
}