Date: Wednesday, March 23, 2016 @ 09:32:53
  Author: fyan
Revision: 168040

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

Added:
  pandoc-crossref/repos/community-staging-i686/
  pandoc-crossref/repos/community-staging-i686/PKGBUILD
    (from rev 168039, pandoc-crossref/trunk/PKGBUILD)
  pandoc-crossref/repos/community-staging-i686/haskell-pandoc-crossref.install
    (from rev 168039, pandoc-crossref/trunk/haskell-pandoc-crossref.install)
  pandoc-crossref/repos/community-staging-x86_64/
  pandoc-crossref/repos/community-staging-x86_64/PKGBUILD
    (from rev 168039, pandoc-crossref/trunk/PKGBUILD)
  pandoc-crossref/repos/community-staging-x86_64/haskell-pandoc-crossref.install
    (from rev 168039, pandoc-crossref/trunk/haskell-pandoc-crossref.install)

----------------------------------------------------------+
 community-staging-i686/PKGBUILD                          |   59 +++++++++++++
 community-staging-i686/haskell-pandoc-crossref.install   |   18 +++
 community-staging-x86_64/PKGBUILD                        |   59 +++++++++++++
 community-staging-x86_64/haskell-pandoc-crossref.install |   18 +++
 4 files changed, 154 insertions(+)

Copied: pandoc-crossref/repos/community-staging-i686/PKGBUILD (from rev 168039, 
pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2016-03-23 08:32:53 UTC (rev 168040)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgbase=pandoc-crossref
+pkgname=(pandoc-crossref haskell-pandoc-crossref)
+pkgver=0.2.0.0
+pkgrel=9
+pkgdesc="Pandoc filter for cross-references"
+url="http://hackage.haskell.org/package/${pkgbase}";
+license=("GPL2")
+arch=('i686' 'x86_64')
+makedepends=("ghc=7.10.3" "haskell-data-default" "haskell-data-accessor" 
"haskell-data-accessor-template"
+             "haskell-data-accessor-transformers" "haskell-mtl" 
"haskell-pandoc" "haskell-pandoc-types"
+             "haskell-roman-numerals" "haskell-syb" "haskell-yaml")
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz";)
+sha256sums=('e7039ced02eaaec80f0814d1d242dd06002d76dc3bed784fd18e50ddec77e3bd')
+
+prepare() {
+    sed -i 's/pandoc >= 1.16 && <1.17/pandoc >= 1.16 \&\& <1.18/' \
+        ${pkgbase}-${pkgver}/${pkgbase}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" 
--datasubdir="$pkgname" \
+        --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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package_pandoc-crossref() {
+    depends=('pandoc')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share}
+}
+
+package_haskell-pandoc-crossref() {
+    pkgdesc="Pandoc filter for cross-references (docs and libraries)"
+    depends=("${makedepends[@]}" 'pandoc-crossref')
+    install="haskell-pandoc-crossref.install"
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    install -D -m744 register.sh   
"${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
+    install    -m744 unregister.sh 
"${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/${pkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/bin
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: 
pandoc-crossref/repos/community-staging-i686/haskell-pandoc-crossref.install 
(from rev 168039, pandoc-crossref/trunk/haskell-pandoc-crossref.install)
===================================================================
--- community-staging-i686/haskell-pandoc-crossref.install                      
        (rev 0)
+++ community-staging-i686/haskell-pandoc-crossref.install      2016-03-23 
08:32:53 UTC (rev 168040)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-pandoc-crossref
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}

Copied: pandoc-crossref/repos/community-staging-x86_64/PKGBUILD (from rev 
168039, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2016-03-23 08:32:53 UTC (rev 168040)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+
+pkgbase=pandoc-crossref
+pkgname=(pandoc-crossref haskell-pandoc-crossref)
+pkgver=0.2.0.0
+pkgrel=9
+pkgdesc="Pandoc filter for cross-references"
+url="http://hackage.haskell.org/package/${pkgbase}";
+license=("GPL2")
+arch=('i686' 'x86_64')
+makedepends=("ghc=7.10.3" "haskell-data-default" "haskell-data-accessor" 
"haskell-data-accessor-template"
+             "haskell-data-accessor-transformers" "haskell-mtl" 
"haskell-pandoc" "haskell-pandoc-types"
+             "haskell-roman-numerals" "haskell-syb" "haskell-yaml")
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz";)
+sha256sums=('e7039ced02eaaec80f0814d1d242dd06002d76dc3bed784fd18e50ddec77e3bd')
+
+prepare() {
+    sed -i 's/pandoc >= 1.16 && <1.17/pandoc >= 1.16 \&\& <1.18/' \
+        ${pkgbase}-${pkgver}/${pkgbase}.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" 
--datasubdir="$pkgname" \
+        --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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package_pandoc-crossref() {
+    depends=('pandoc')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share}
+}
+
+package_haskell-pandoc-crossref() {
+    pkgdesc="Pandoc filter for cross-references (docs and libraries)"
+    depends=("${makedepends[@]}" 'pandoc-crossref')
+    install="haskell-pandoc-crossref.install"
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    install -D -m744 register.sh   
"${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
+    install    -m744 unregister.sh 
"${pkgdir}/usr/share/haskell/${pkgname}/unregister.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/${pkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/bin
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}

Copied: 
pandoc-crossref/repos/community-staging-x86_64/haskell-pandoc-crossref.install 
(from rev 168039, pandoc-crossref/trunk/haskell-pandoc-crossref.install)
===================================================================
--- community-staging-x86_64/haskell-pandoc-crossref.install                    
        (rev 0)
+++ community-staging-x86_64/haskell-pandoc-crossref.install    2016-03-23 
08:32:53 UTC (rev 168040)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-pandoc-crossref
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}

Reply via email to