[arch-commits] Commit in ghc-mod/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Jun 24 16:55:25 UTC 2016
Date: Friday, June 24, 2016 @ 16:55:25
Author: felixonmars
Revision: 181029
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
ghc-mod/repos/community-staging-i686/
ghc-mod/repos/community-staging-i686/PKGBUILD
(from rev 181028, ghc-mod/trunk/PKGBUILD)
ghc-mod/repos/community-staging-x86_64/
ghc-mod/repos/community-staging-x86_64/PKGBUILD
(from rev 181028, ghc-mod/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
Copied: ghc-mod/repos/community-staging-i686/PKGBUILD (from rev 181028, ghc-mod/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-06-24 16:55:25 UTC (rev 181029)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=ghc-mod
+pkgname=(ghc-mod haskell-ghc-mod)
+pkgver=5.5.0.0
+pkgrel=32
+pkgdesc="Happy Haskell Programming"
+url="http://www.mew.org/~kazu/proj/ghc-mod/"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "git" "haskell-cabal-helper" "haskell-djinn-ghc" "haskell-extra"
+ "haskell-fclabels" "haskell-ghc-paths" "haskell-ghc-syb-utils" "haskell-src-exts"
+ "haskell-hlint" "haskell-monad-control" "haskell-monad-journal" "haskell-mtl"
+ "haskell-old-time" "haskell-optparse-applicative" "haskell-pipes" "haskell-safe"
+ "haskell-split" "haskell-syb" "haskell-temporary" "haskell-text"
+ "haskell-transformers-base")
+source=("git+https://github.com/DanielG/ghc-mod.git#commit=f2c7b01e372dd8c516b1ccbe5a1025cc7814347c")
+sha256sums=('SKIP')
+
+prepare() {
+ sed -i 's/, pipes == 4.1.\*/, pipes >= 4.1/' $pkgbase/$pkgbase.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgbase}"
+
+ runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+ --libsubdir=\$compiler/site-local/\$pkgid
+ 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_ghc-mod() {
+ depends=('cabal-helper' 'ghc')
+
+ cd "${srcdir}/${pkgbase}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -r "$pkgdir"/usr/{lib,share/doc}
+
+ install -D -m644 "COPYING.BSD3" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3"
+}
+
+package_haskell-ghc-mod() {
+ pkgdesc="Happy Haskell Programming (docs and libraries)"
+ depends=("${makedepends[@]}" 'ghc-mod')
+
+ cd "${srcdir}/${pkgbase}"
+
+ 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/${pkgbase}/COPYING.BSD3"
+ rm -r "$pkgdir"/usr/{bin,share/$pkgbase}
+}
Copied: ghc-mod/repos/community-staging-x86_64/PKGBUILD (from rev 181028, ghc-mod/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-06-24 16:55:25 UTC (rev 181029)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=ghc-mod
+pkgname=(ghc-mod haskell-ghc-mod)
+pkgver=5.5.0.0
+pkgrel=32
+pkgdesc="Happy Haskell Programming"
+url="http://www.mew.org/~kazu/proj/ghc-mod/"
+license=("AGPL3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "git" "haskell-cabal-helper" "haskell-djinn-ghc" "haskell-extra"
+ "haskell-fclabels" "haskell-ghc-paths" "haskell-ghc-syb-utils" "haskell-src-exts"
+ "haskell-hlint" "haskell-monad-control" "haskell-monad-journal" "haskell-mtl"
+ "haskell-old-time" "haskell-optparse-applicative" "haskell-pipes" "haskell-safe"
+ "haskell-split" "haskell-syb" "haskell-temporary" "haskell-text"
+ "haskell-transformers-base")
+source=("git+https://github.com/DanielG/ghc-mod.git#commit=f2c7b01e372dd8c516b1ccbe5a1025cc7814347c")
+sha256sums=('SKIP')
+
+prepare() {
+ sed -i 's/, pipes == 4.1.\*/, pipes >= 4.1/' $pkgbase/$pkgbase.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgbase}"
+
+ runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+ --libsubdir=\$compiler/site-local/\$pkgid
+ 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_ghc-mod() {
+ depends=('cabal-helper' 'ghc')
+
+ cd "${srcdir}/${pkgbase}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -r "$pkgdir"/usr/{lib,share/doc}
+
+ install -D -m644 "COPYING.BSD3" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3"
+}
+
+package_haskell-ghc-mod() {
+ pkgdesc="Happy Haskell Programming (docs and libraries)"
+ depends=("${makedepends[@]}" 'ghc-mod')
+
+ cd "${srcdir}/${pkgbase}"
+
+ 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/${pkgbase}/COPYING.BSD3"
+ rm -r "$pkgdir"/usr/{bin,share/$pkgbase}
+}
More information about the arch-commits
mailing list