Date: Saturday, December 16, 2017 @ 18:46:00 Author: felixonmars Revision: 274608
upgpkg: pandoc-citeproc 0.12.1.1-1 rebuild with pandoc-citeproc,0.12.1.1 Modified: pandoc-citeproc/trunk/PKGBUILD ----------+ PKGBUILD | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-16 18:36:24 UTC (rev 274607) +++ PKGBUILD 2017-12-16 18:46:00 UTC (rev 274608) @@ -3,28 +3,34 @@ # Contributor: Arch Haskell Team <[email protected]> pkgname=pandoc-citeproc -pkgver=0.12.1 -pkgrel=27 +pkgver=0.12.1.1 +pkgrel=1 pkgdesc="Supports using pandoc with citeproc" url="https://hackage.haskell.org/package/$pkgname" license=("custom:BSD3") arch=('x86_64') -depends=('ghc-libs' "haskell-aeson" "haskell-aeson-pretty" "haskell-attoparsec" "haskell-data-default" - "haskell-hs-bibutils" "haskell-mtl" "haskell-old-locale" "pandoc" "haskell-pandoc-types" - "haskell-parsec" "haskell-rfc5051" "haskell-setenv" "haskell-split" "haskell-syb" - "haskell-tagsoup" "haskell-temporary" "haskell-text" "haskell-text-icu" - "haskell-unordered-containers" "haskell-vector" "haskell-xml-conduit" "haskell-yaml") +depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-attoparsec' + 'haskell-data-default' 'haskell-hs-bibutils' 'haskell-mtl' 'haskell-old-locale' 'pandoc' + 'haskell-pandoc-types' 'haskell-parsec' 'haskell-rfc5051' 'haskell-setenv' 'haskell-split' + 'haskell-syb' 'haskell-tagsoup' 'haskell-temporary' 'haskell-text' 'haskell-text-icu' + 'haskell-unordered-containers' 'haskell-vector' 'haskell-xml-conduit' 'haskell-yaml') conflicts=('haskell-pandoc-citeproc') replaces=('haskell-pandoc-citeproc') makedepends=('ghc') source=("https://hackage.haskell.org/packages/archive/$pkgname/${pkgver}/$pkgname-${pkgver}.tar.gz") -sha512sums=('74ab07cc8a62523079195c6b9e2283b992ef496782d58c9e4ee84f4343f6d69f1f4229eab27b594c5bf0d52536976fb42f1c9848d034dff7034d27d334492b06') +sha512sums=('498f6f51d57f1f6699b23dd31fbc120769c3ba0900a361161ea5de4d6282eb7a987b692f0abbdbe11173d770e360028837b30250d70cec2ebb83c6c2724fc5fe') +prepare() { + cd "${srcdir}/$pkgname-${pkgver}" + # TODO: find a better solution + sed -i "s|(\"HOME\",\".\")|(\"HOME\",\".\"),(\"LD_LIBRARY_PATH\",\"$PWD/dist/build\"),(\"pandoc_citeproc_datadir\",\"$PWD\")|" tests/test-pandoc-citeproc.hs +} + 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" \ + --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir="$pkgname" --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -f-debug -f-test_citeproc -funicode_collation -f-embed_data_files -fbibutils -f-static runhaskell Setup build @@ -34,6 +40,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $pkgname-$pkgver + runhaskell Setup test +} + package() { cd "${srcdir}/$pkgname-${pkgver}"
