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

Felix Yan felixonmars at archlinux.org
Fri Jul 1 17:33:40 UTC 2016


    Date: Friday, July 1, 2016 @ 17:33:40
  Author: felixonmars
Revision: 181748

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

Added:
  pandoc/repos/community-staging-i686/
  pandoc/repos/community-staging-i686/PKGBUILD
    (from rev 181747, pandoc/trunk/PKGBUILD)
  pandoc/repos/community-staging-x86_64/
  pandoc/repos/community-staging-x86_64/PKGBUILD
    (from rev 181747, pandoc/trunk/PKGBUILD)

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

Copied: pandoc/repos/community-staging-i686/PKGBUILD (from rev 181747, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2016-07-01 17:33:40 UTC (rev 181748)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=pandoc
+pkgname=(pandoc haskell-pandoc)
+pkgver=1.17.1
+pkgrel=8
+pkgdesc="Conversion between markup formats"
+url="http://pandoc.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-http" "haskell-juicypixels" "haskell-sha" "haskell-aeson"
+             "haskell-base64-bytestring" "haskell-blaze-html" "haskell-blaze-markup"
+             "haskell-cmark" "haskell-data-default" "haskell-mtl" "haskell-extensible-exceptions"
+             "haskell-filemanip" "haskell-haddock-library" "haskell-highlighting-kate"
+             "haskell-hslua" "haskell-http-client" "haskell-syb" "haskell-http-client-tls"
+             "haskell-http-types"  "haskell-text" "haskell-texmath" "haskell-network"
+             "haskell-old-time" "haskell-pandoc-types" "haskell-parsec" "haskell-random"
+             "haskell-scientific" "haskell-tagsoup" "haskell-temporary" "haskell-network-uri"
+             "haskell-unordered-containers" "haskell-zip-archive" "haskell-vector" "haskell-xml"
+             "haskell-yaml" "haskell-zlib")
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('5978baaf664ce254b508108a6be9d5a11a2c2ac61462ae85286be2ecdb010c86')
+
+prepare() {
+    sed -i 's/tagsoup >= 0.13.7 && < 0.14,/tagsoup >= 0.13.7 \&\& < 0.15,/' $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-old-locale -fnetwork-uri -fhttps -f-trypandoc -f-embed_data_files
+    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_pandoc() {
+    depends=('gmp' 'libffi' 'zlib' 'pcre' 'cmark')
+    optdepends=('pandoc-citeproc: for citation rendering with pandoc-citeproc filter'
+                'texlive-core: for pdf output')
+    replaces=('pandoc-static')
+    conflicts=('pandoc-static')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share/doc}
+}
+
+package_haskell-pandoc() {
+    pkgdesc="Conversion between markup formats (docs and libraries)"
+    depends=("${makedepends[@]}" 'pandoc')
+
+    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/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/share/{pandoc,man} "$pkgdir"/usr/bin
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING"
+}

Copied: pandoc/repos/community-staging-x86_64/PKGBUILD (from rev 181747, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2016-07-01 17:33:40 UTC (rev 181748)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=pandoc
+pkgname=(pandoc haskell-pandoc)
+pkgver=1.17.1
+pkgrel=8
+pkgdesc="Conversion between markup formats"
+url="http://pandoc.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-http" "haskell-juicypixels" "haskell-sha" "haskell-aeson"
+             "haskell-base64-bytestring" "haskell-blaze-html" "haskell-blaze-markup"
+             "haskell-cmark" "haskell-data-default" "haskell-mtl" "haskell-extensible-exceptions"
+             "haskell-filemanip" "haskell-haddock-library" "haskell-highlighting-kate"
+             "haskell-hslua" "haskell-http-client" "haskell-syb" "haskell-http-client-tls"
+             "haskell-http-types"  "haskell-text" "haskell-texmath" "haskell-network"
+             "haskell-old-time" "haskell-pandoc-types" "haskell-parsec" "haskell-random"
+             "haskell-scientific" "haskell-tagsoup" "haskell-temporary" "haskell-network-uri"
+             "haskell-unordered-containers" "haskell-zip-archive" "haskell-vector" "haskell-xml"
+             "haskell-yaml" "haskell-zlib")
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('5978baaf664ce254b508108a6be9d5a11a2c2ac61462ae85286be2ecdb010c86')
+
+prepare() {
+    sed -i 's/tagsoup >= 0.13.7 && < 0.14,/tagsoup >= 0.13.7 \&\& < 0.15,/' $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgname" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-old-locale -fnetwork-uri -fhttps -f-trypandoc -f-embed_data_files
+    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_pandoc() {
+    depends=('gmp' 'libffi' 'zlib' 'pcre' 'cmark')
+    optdepends=('pandoc-citeproc: for citation rendering with pandoc-citeproc filter'
+                'texlive-core: for pdf output')
+    replaces=('pandoc-static')
+    conflicts=('pandoc-static')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share/doc}
+}
+
+package_haskell-pandoc() {
+    pkgdesc="Conversion between markup formats (docs and libraries)"
+    depends=("${makedepends[@]}" 'pandoc')
+
+    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/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/share/{pandoc,man} "$pkgdir"/usr/bin
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING"
+}



More information about the arch-commits mailing list