Date: Tuesday, December 1, 2015 @ 09:51:21 Author: fyan Revision: 148065
archrelease: copy trunk to community-i686, community-x86_64 Added: cabal-install/repos/community-i686/ cabal-install/repos/community-i686/PKGBUILD (from rev 148064, cabal-install/trunk/PKGBUILD) cabal-install/repos/community-x86_64/ cabal-install/repos/community-x86_64/PKGBUILD (from rev 148064, cabal-install/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) Copied: cabal-install/repos/community-i686/PKGBUILD (from rev 148064, cabal-install/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2015-12-01 08:51:21 UTC (rev 148065) @@ -0,0 +1,49 @@ +# Maintainer: Thomas Dziedzic <gos...@gmail.com> +# Maintainer: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@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/community-x86_64/PKGBUILD (from rev 148064, cabal-install/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2015-12-01 08:51:21 UTC (rev 148065) @@ -0,0 +1,49 @@ +# Maintainer: Thomas Dziedzic <gos...@gmail.com> +# Maintainer: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@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 +}