From dd03fdb85f133510a7a8e099343b8ae69ec3ab6d Mon Sep 17 00:00:00 2001 From: gnastyle Date: Mon, 25 May 2015 12:53:12 +0000 Subject: [PATCH] Imported cabal-install --- cabal-install/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cabal-install/PKGBUILD diff --git a/cabal-install/PKGBUILD b/cabal-install/PKGBUILD new file mode 100644 index 000000000..cb49b6a63 --- /dev/null +++ b/cabal-install/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: Arch Haskell Team + +pkgname=cabal-install +pkgver=1.22.4.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') +makedepends=('ghc' 'haskell-random' 'haskell-stm') +depends=('gmp' 'zlib') +source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz") +sha512sums=('f07d89a4121df673a284930ea21f0277061d99bca21e4a46bb037b1b4ab27dc4a1d4e165caad5cf1894653640cadc60618f5694e9b32438151b7f876fd12ee75') + +# the bootstrap script was broken on several releases +# build with a cabal sandbox to avoid unnecessary patching & headaches +build() { + cd cabal-install-${pkgver} + + ./bootstrap.sh +} + +package() { + cd cabal-install-${pkgver} + + install -d ${pkgdir}/usr/bin + install -m755 dist/build/cabal/cabal \ + ${pkgdir}/usr/bin + + + install -d ${pkgdir}/usr/share/licenses/${pkgname} + install -m644 LICENSE \ + ${pkgdir}/usr/share/licenses/${pkgname} + + # add bash completion + install -d ${pkgdir}/usr/share/bash-completion/completions + install -m644 bash-completion/cabal \ + ${pkgdir}/usr/share/bash-completion/completions +} \ No newline at end of file