[arch-commits] Commit in cabal-helper/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Jun 16 09:52:14 UTC 2017
Date: Friday, June 16, 2017 @ 09:52:14
Author: felixonmars
Revision: 237598
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
cabal-helper/repos/community-staging-i686/
cabal-helper/repos/community-staging-i686/PKGBUILD
(from rev 237597, cabal-helper/trunk/PKGBUILD)
cabal-helper/repos/community-staging-x86_64/
cabal-helper/repos/community-staging-x86_64/PKGBUILD
(from rev 237597, cabal-helper/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
Copied: cabal-helper/repos/community-staging-i686/PKGBUILD (from rev 237597, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-06-16 09:52:14 UTC (rev 237598)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cabal-helper
+pkgver=0.7.3.0
+pkgrel=3
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+depends=("ghc" "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('794055f5205dd029aceb2fe9aac183880d2b4ef005d1096ee3052710d01192a4')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \
+ --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-dev
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: cabal-helper/repos/community-staging-x86_64/PKGBUILD (from rev 237597, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-06-16 09:52:14 UTC (rev 237598)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=cabal-helper
+pkgver=0.7.3.0
+pkgrel=3
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+depends=("ghc" "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('794055f5205dd029aceb2fe9aac183880d2b4ef005d1096ee3052710d01192a4')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \
+ --libsubdir=\$compiler/site-local/\$pkgid \
+ -f-dev
+ runhaskell Setup build
+ runhaskell Setup haddock --hoogle --html
+ runhaskell Setup register --gen-script
+ runhaskell Setup unregister --gen-script
+ sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh"
+ install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh"
+ install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+ ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list