desktop/cabal-install/PKGBUILD

35 lines
1.0 KiB
Bash
Raw Normal View History

2015-05-25 20:53:12 +08:00
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
pkgname=cabal-install
2017-01-27 07:12:28 +08:00
pkgver=1.24.0.2
2016-11-06 04:54:42 +08:00
pkgrel=1
2015-05-25 20:53:12 +08:00
pkgdesc="The command-line interface for Cabal and Hackage."
url="http://hackage.haskell.org/package/cabal-install"
license=('custom:BSD3')
arch=('x86_64')
2016-02-06 06:05:37 +08:00
depends=('gmp' 'zlib' 'libffi')
2016-11-06 04:54:42 +08:00
makedepends=('ghc=7.10.3' 'haskell-http' 'haskell-mtl' 'haskell-network' 'haskell-network-uri'
'haskell-random' 'haskell-stm' 'haskell-zlib')
2015-05-25 20:53:12 +08:00
source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
2017-01-27 07:12:28 +08:00
sha256sums=('2ac8819238a0e57fff9c3c857e97b8705b1b5fef2e46cd2829e85d96e2a00fe0')
2015-05-25 20:53:12 +08:00
build() {
cd cabal-install-${pkgver}
sh bootstrap.sh --user
2015-05-25 20:53:12 +08:00
}
package() {
cd cabal-install-${pkgver}
2016-02-06 06:05:37 +08:00
install -Dm755 dist/build/cabal/cabal \
2016-02-07 20:57:51 +08:00
${pkgdir}/usr/bin/cabal
2015-05-25 20:53:12 +08:00
2016-02-06 06:05:37 +08:00
install -Dm644 LICENSE \
2016-02-07 20:57:51 +08:00
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
2015-05-25 20:53:12 +08:00
# add bash completion
2016-02-06 06:05:37 +08:00
install -Dm644 bash-completion/cabal \
2016-02-07 20:57:51 +08:00
${pkgdir}/usr/share/bash-completion/completions/cabal
2016-03-04 06:02:06 +08:00
}