[arch-commits] Commit in cabal-install/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Oct 7 00:39:45 UTC 2015


    Date: Wednesday, October 7, 2015 @ 02:39:45
  Author: foutrelis
Revision: 248439

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  cabal-install/repos/staging-i686/
  cabal-install/repos/staging-i686/PKGBUILD
    (from rev 248438, cabal-install/trunk/PKGBUILD)
  cabal-install/repos/staging-x86_64/
  cabal-install/repos/staging-x86_64/PKGBUILD
    (from rev 248438, cabal-install/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   49 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   49 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

Copied: cabal-install/repos/staging-i686/PKGBUILD (from rev 248438, cabal-install/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-10-07 00:39:45 UTC (rev 248439)
@@ -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
+}

Copied: cabal-install/repos/staging-x86_64/PKGBUILD (from rev 248438, cabal-install/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-10-07 00:39:45 UTC (rev 248439)
@@ -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
+}



More information about the arch-commits mailing list