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

Felix Yan felixonmars at archlinux.org
Sat Aug 6 06:26:39 UTC 2016


    Date: Saturday, August 6, 2016 @ 06:26:38
  Author: felixonmars
Revision: 185466

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 185465, cabal-helper/trunk/PKGBUILD)
  cabal-helper/repos/community-staging-x86_64/
  cabal-helper/repos/community-staging-x86_64/PKGBUILD
    (from rev 185465, cabal-helper/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   52 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

Copied: cabal-helper/repos/community-staging-i686/PKGBUILD (from rev 185465, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-08-06 06:26:38 UTC (rev 185466)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=cabal-helper
+pkgname=(cabal-helper haskell-cabal-helper)
+pkgver=0.7.2.0
+pkgrel=1
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="http://hackage.haskell.org/package/${pkgbase}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('90572b1e4aeb780464f7d5f2f88c4f59ebb4539fe303f0b86d42ef3b9078a362')
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --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_cabal-helper() {
+    depends=('gmp' 'libffi')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib/ghc-*,share}
+}
+
+package_haskell-cabal-helper() {
+    pkgdesc="Simple interface to some of Cabal's configuration state used by ghc-mod (docs and libraries)"
+    depends=("${makedepends[@]}" 'cabal-helper')
+    cd "${srcdir}/${pkgbase}-${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/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+    rm "$pkgdir/usr/lib/cabal-helper-wrapper-v0.7"
+}

Copied: cabal-helper/repos/community-staging-x86_64/PKGBUILD (from rev 185465, cabal-helper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-08-06 06:26:38 UTC (rev 185466)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=cabal-helper
+pkgname=(cabal-helper haskell-cabal-helper)
+pkgver=0.7.2.0
+pkgrel=1
+pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod"
+url="http://hackage.haskell.org/package/${pkgbase}"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-mtl" "haskell-temporary" "haskell-utf8-string")
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('90572b1e4aeb780464f7d5f2f88c4f59ebb4539fe303f0b86d42ef3b9078a362')
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --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_cabal-helper() {
+    depends=('gmp' 'libffi')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib/ghc-*,share}
+}
+
+package_haskell-cabal-helper() {
+    pkgdesc="Simple interface to some of Cabal's configuration state used by ghc-mod (docs and libraries)"
+    depends=("${makedepends[@]}" 'cabal-helper')
+    cd "${srcdir}/${pkgbase}-${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/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+    rm "$pkgdir/usr/lib/cabal-helper-wrapper-v0.7"
+}



More information about the arch-commits mailing list