[arch-commits] Commit in pandoc-crossref/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Aug 14 10:54:30 UTC 2017
Date: Monday, August 14, 2017 @ 10:54:29
Author: felixonmars
Revision: 250292
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 250291, pandoc-crossref/trunk/PKGBUILD)
pandoc-crossref/repos/community-staging-x86_64/
pandoc-crossref/repos/community-staging-x86_64/PKGBUILD
(from rev 250291, pandoc-crossref/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
Copied: pandoc-crossref/repos/community-staging-i686/PKGBUILD (from rev 250291, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-08-14 10:54:29 UTC (rev 250292)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc-crossref
+pkgver=0.2.6.0
+pkgrel=2
+pkgdesc="Pandoc filter for cross-references"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("GPL2")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-data-default" "haskell-data-accessor" "haskell-data-accessor-template"
+ "haskell-data-accessor-transformers" "haskell-mtl" "pandoc" "haskell-pandoc-types"
+ "haskell-roman-numerals" "haskell-syb" "haskell-utility-ht")
+conflicts=('haskell-pandoc-crossref')
+replaces=('haskell-pandoc-crossref')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('2af52b5f347b039148d5285b1277a1c3e382bf0f666d353ac593635f1bae3ef692fac7319ed0ca8c9ab33475a2bb28ae5b540d80c637eb39f8f5a22830258fc1')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --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() {
+ cd "${srcdir}/${pkgname}-${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 -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
Copied: pandoc-crossref/repos/community-staging-x86_64/PKGBUILD (from rev 250291, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-08-14 10:54:29 UTC (rev 250292)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=pandoc-crossref
+pkgver=0.2.6.0
+pkgrel=2
+pkgdesc="Pandoc filter for cross-references"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("GPL2")
+arch=('i686' 'x86_64')
+depends=('ghc' "haskell-data-default" "haskell-data-accessor" "haskell-data-accessor-template"
+ "haskell-data-accessor-transformers" "haskell-mtl" "pandoc" "haskell-pandoc-types"
+ "haskell-roman-numerals" "haskell-syb" "haskell-utility-ht")
+conflicts=('haskell-pandoc-crossref')
+replaces=('haskell-pandoc-crossref')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('2af52b5f347b039148d5285b1277a1c3e382bf0f666d353ac593635f1bae3ef692fac7319ed0ca8c9ab33475a2bb28ae5b540d80c637eb39f8f5a22830258fc1')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --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() {
+ cd "${srcdir}/${pkgname}-${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 -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+
+ # Remove static libs
+ find "$pkgdir"/usr/lib -name "*.a" -delete
+}
More information about the arch-commits
mailing list