[arch-commits] Commit in pandoc-crossref/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Dec 4 21:05:49 UTC 2017
Date: Monday, December 4, 2017 @ 21:05:49
Author: felixonmars
Revision: 272165
archrelease: copy trunk to community-staging-x86_64
Added:
pandoc-crossref/repos/community-staging-x86_64/
pandoc-crossref/repos/community-staging-x86_64/PKGBUILD
(from rev 272164, pandoc-crossref/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: pandoc-crossref/repos/community-staging-x86_64/PKGBUILD (from rev 272164, pandoc-crossref/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-12-04 21:05:49 UTC (rev 272165)
@@ -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.3.0.0beta3a
+pkgrel=19
+pkgdesc="Pandoc filter for cross-references"
+url="https://hackage.haskell.org/package/${pkgname}"
+license=("GPL2")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-data-default' 'haskell-data-accessor' 'haskell-data-accessor-template'
+ 'haskell-data-accessor-transformers' 'haskell-file-embed' 'haskell-mtl'
+ 'haskell-open-browser' 'haskell-optparse-applicative' 'pandoc' 'haskell-pandoc-types'
+ 'haskell-roman-numerals' 'haskell-syb' 'haskell-text' 'haskell-utility-ht')
+makedepends=('ghc')
+conflicts=('haskell-pandoc-crossref')
+replaces=('haskell-pandoc-crossref')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/lierdakil/pandoc-crossref/archive/v0.3.0.0-beta3a.tar.gz")
+sha512sums=('02f8762320465bf11dcb10e5182d978f3d5a37527480373c96fb6dc8c4651708d68c92b5ad857271a106c109aeaf87fad87b39125f8c9130e5401e2744e8d95b')
+
+prepare() {
+ mv $pkgname-{0.3.0.0-beta3a,$pkgver}
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+ runhaskell Setup build
+ 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"
+ runhaskell Setup copy --destdir="${pkgdir}"
+ rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md"
+}
More information about the arch-commits
mailing list