[arch-commits] Commit in pandoc-crossref/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 27 05:19:11 UTC 2016
Date: Thursday, October 27, 2016 @ 05:19:10
Author: felixonmars
Revision: 193762
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 193761, pandoc-crossref/trunk/PKGBUILD)
pandoc-crossref/repos/community-staging-x86_64/
pandoc-crossref/repos/community-staging-x86_64/PKGBUILD
(from rev 193761, pandoc-crossref/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++
2 files changed, 120 insertions(+)
Copied: pandoc-crossref/repos/community-staging-i686/PKGBUILD (from rev 193761, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-10-27 05:19:10 UTC (rev 193762)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=pandoc-crossref
+pkgname=(pandoc-crossref haskell-pandoc-crossref)
+pkgver=0.2.3.0
+pkgrel=10
+pkgdesc="Pandoc filter for cross-references"
+url="http://hackage.haskell.org/package/${pkgbase}"
+license=("GPL2")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "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")
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('b6b4200023da4835cf50a2c9a247a837282ccf16e1684336b5a15d17b9ad085e')
+
+prepare() {
+ sed -e 's/pandoc >= 1.17.1 && <1.18/pandoc >= 1.17.1 \&\& <1.19/' \
+ -e 's/pandoc-types >= 1.16 && < 1.17/pandoc-types >= 1.16 \&\& < 1.18/' \
+ -i ${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.*update[^ ]* |&'--force' |" register.sh
+ 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')
+
+ 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/${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/PKGBUILD (from rev 193761, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-10-27 05:19:10 UTC (rev 193762)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=pandoc-crossref
+pkgname=(pandoc-crossref haskell-pandoc-crossref)
+pkgver=0.2.3.0
+pkgrel=10
+pkgdesc="Pandoc filter for cross-references"
+url="http://hackage.haskell.org/package/${pkgbase}"
+license=("GPL2")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "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")
+source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('b6b4200023da4835cf50a2c9a247a837282ccf16e1684336b5a15d17b9ad085e')
+
+prepare() {
+ sed -e 's/pandoc >= 1.17.1 && <1.18/pandoc >= 1.17.1 \&\& <1.19/' \
+ -e 's/pandoc-types >= 1.16 && < 1.17/pandoc-types >= 1.16 \&\& < 1.18/' \
+ -i ${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.*update[^ ]* |&'--force' |" register.sh
+ 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')
+
+ 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/${pkgname}"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -r "$pkgdir"/usr/bin
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}
More information about the arch-commits
mailing list