[arch-commits] Commit in pandoc/repos (6 files)
Felix Yan
fyan at archlinux.org
Thu Oct 15 06:43:26 UTC 2015
Date: Thursday, October 15, 2015 @ 08:43:26
Author: fyan
Revision: 144055
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 144054, pandoc/trunk/PKGBUILD)
pandoc/repos/community-staging-i686/pandoc.install
(from rev 144054, pandoc/trunk/pandoc.install)
pandoc/repos/community-staging-x86_64/
pandoc/repos/community-staging-x86_64/PKGBUILD
(from rev 144054, pandoc/trunk/PKGBUILD)
pandoc/repos/community-staging-x86_64/pandoc.install
(from rev 144054, pandoc/trunk/pandoc.install)
-----------------------------------------+
community-staging-i686/PKGBUILD | 63 ++++++++++++++++++++++++++++++
community-staging-i686/pandoc.install | 18 ++++++++
community-staging-x86_64/PKGBUILD | 63 ++++++++++++++++++++++++++++++
community-staging-x86_64/pandoc.install | 18 ++++++++
4 files changed, 162 insertions(+)
Copied: pandoc/repos/community-staging-i686/PKGBUILD (from rev 144054, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-10-15 06:43:26 UTC (rev 144055)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc
+pkgver=1.15.0.6
+pkgrel=2
+pkgdesc="Conversion between markup formats"
+url="http://pandoc.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=("ghc=7.10.2" "haskell-http" "haskell-juicypixels" "haskell-sha" "haskell-aeson"
+ "haskell-base64-bytestring" "haskell-blaze-html" "haskell-blaze-markup"
+ "haskell-cmark" "haskell-data-default" "haskell-deepseq-generics" "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")
+optdepends=('haskell-pandoc-citeproc: for citation rendering with pandoc-citeproc filter')
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+install="${pkgname}.install"
+sha256sums=('d950968142526d5a765af7dfb26b47c3f60d4f883aa9d9eab668614179f1ed46')
+
+prepare() {
+ # Allowed by upstream already
+ sed -e 's|http-types >= 0.8 && < 0.9|http-types >= 0.8 \&\& < 0.10|' \
+ -e 's|syb >= 0.1 && < 0.6|syb >= 0.1 \&\& < 0.7|' \
+ -e 's|aeson >= 0.7 && < 0.10|aeson >= 0.7 \&\& < 0.11|' \
+ -e 's|aeson >= 0.7.0.5 && < 0.10|aeson >= 0.7.0.5 \&\& < 0.11|' \
+ -i $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${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/man/man1"
+ install -d -m755 "${pkgdir}/usr/share/man/man5"
+ 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}"
+ install -D -m644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING"
+}
Copied: pandoc/repos/community-staging-i686/pandoc.install (from rev 144054, pandoc/trunk/pandoc.install)
===================================================================
--- community-staging-i686/pandoc.install (rev 0)
+++ community-staging-i686/pandoc.install 2015-10-15 06:43:26 UTC (rev 144055)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/pandoc
+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/repos/community-staging-x86_64/PKGBUILD (from rev 144054, pandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-10-15 06:43:26 UTC (rev 144055)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc
+pkgver=1.15.0.6
+pkgrel=2
+pkgdesc="Conversion between markup formats"
+url="http://pandoc.org"
+license=("GPL")
+arch=('i686' 'x86_64')
+depends=("ghc=7.10.2" "haskell-http" "haskell-juicypixels" "haskell-sha" "haskell-aeson"
+ "haskell-base64-bytestring" "haskell-blaze-html" "haskell-blaze-markup"
+ "haskell-cmark" "haskell-data-default" "haskell-deepseq-generics" "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")
+optdepends=('haskell-pandoc-citeproc: for citation rendering with pandoc-citeproc filter')
+options=('staticlibs')
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+install="${pkgname}.install"
+sha256sums=('d950968142526d5a765af7dfb26b47c3f60d4f883aa9d9eab668614179f1ed46')
+
+prepare() {
+ # Allowed by upstream already
+ sed -e 's|http-types >= 0.8 && < 0.9|http-types >= 0.8 \&\& < 0.10|' \
+ -e 's|syb >= 0.1 && < 0.6|syb >= 0.1 \&\& < 0.7|' \
+ -e 's|aeson >= 0.7 && < 0.10|aeson >= 0.7 \&\& < 0.11|' \
+ -e 's|aeson >= 0.7.0.5 && < 0.10|aeson >= 0.7.0.5 \&\& < 0.11|' \
+ -i $pkgname-$pkgver/$pkgname.cabal
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+ --prefix=/usr --docdir="/usr/share/doc/${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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${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/man/man1"
+ install -d -m755 "${pkgdir}/usr/share/man/man5"
+ 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}"
+ install -D -m644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING"
+}
Copied: pandoc/repos/community-staging-x86_64/pandoc.install (from rev 144054, pandoc/trunk/pandoc.install)
===================================================================
--- community-staging-x86_64/pandoc.install (rev 0)
+++ community-staging-x86_64/pandoc.install 2015-10-15 06:43:26 UTC (rev 144055)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/pandoc
+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)
+}
More information about the arch-commits
mailing list