[arch-commits] Commit in pandoc-crossref/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jan 3 00:18:41 UTC 2017
Date: Tuesday, January 3, 2017 @ 00:18:40
Author: felixonmars
Revision: 204560
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 204559, pandoc-crossref/trunk/PKGBUILD)
pandoc-crossref/repos/community-staging-x86_64/
pandoc-crossref/repos/community-staging-x86_64/PKGBUILD
(from rev 204559, pandoc-crossref/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++
2 files changed, 116 insertions(+)
Copied: pandoc-crossref/repos/community-staging-i686/PKGBUILD (from rev 204559, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-01-03 00:18:40 UTC (rev 204560)
@@ -0,0 +1,58 @@
+# $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.4.1
+pkgrel=21
+pkgdesc="Pandoc filter for cross-references"
+url="https://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-utility-ht" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('2aa2266ac3916677c18bd9a88b99f32622c22c983abaed3598020913ca3912ed')
+
+prepare() {
+ sed -i 's/pandoc >= 1.17.1 && <1.19/pandoc >= 1.17.1 \&\& <1.20/' ${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 204559, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-01-03 00:18:40 UTC (rev 204560)
@@ -0,0 +1,58 @@
+# $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.4.1
+pkgrel=21
+pkgdesc="Pandoc filter for cross-references"
+url="https://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-utility-ht" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha256sums=('2aa2266ac3916677c18bd9a88b99f32622c22c983abaed3598020913ca3912ed')
+
+prepare() {
+ sed -i 's/pandoc >= 1.17.1 && <1.19/pandoc >= 1.17.1 \&\& <1.20/' ${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