[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Dec 1 08:50:58 UTC 2015


    Date: Tuesday, December 1, 2015 @ 09:50:56
  Author: fyan
Revision: 148064

extra2community: Moving cabal-install from extra to community

Added:
  cabal-install/
  cabal-install/repos/
  cabal-install/trunk/
  cabal-install/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Added: cabal-install/trunk/PKGBUILD
===================================================================
--- cabal-install/trunk/PKGBUILD	                        (rev 0)
+++ cabal-install/trunk/PKGBUILD	2015-12-01 08:50:56 UTC (rev 148064)
@@ -0,0 +1,49 @@
+# Maintainer: Thomas Dziedzic <gostrc at gmail.com>
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cabal-install
+pkgver=1.22.6.0
+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=('gmp' 'zlib' 'libffi')
+makedepends=('ghc' 'cabal-install' 'chrpath')
+source=("https://hackage.haskell.org/package/cabal-install-${pkgver}/cabal-install-${pkgver}.tar.gz")
+md5sums=('0463650044697ea337705ea9e29a0221')
+
+# the bootstrap script was broken on several releases
+# build with a cabal sandbox to avoid unnecessary patching & headaches
+build() {
+  cd cabal-install-${pkgver}
+
+  cabal update
+
+  cabal sandbox init
+
+  cabal install --only-dependencies
+
+  cabal build
+}
+
+package() {
+  cd cabal-install-${pkgver}
+
+  install -d ${pkgdir}/usr/bin
+  install -m755 dist/build/cabal/cabal \
+    ${pkgdir}/usr/bin
+
+  # remove insecure rpath
+  chrpath -d ${pkgdir}/usr/bin/cabal
+
+  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
+}


Property changes on: cabal-install/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list