Date: Friday, June 16, 2017 @ 10:03:31 Author: felixonmars Revision: 237602
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: pandoc-citeproc/repos/community-staging-i686/ pandoc-citeproc/repos/community-staging-i686/PKGBUILD (from rev 237601, pandoc-citeproc/trunk/PKGBUILD) pandoc-citeproc/repos/community-staging-x86_64/ pandoc-citeproc/repos/community-staging-x86_64/PKGBUILD (from rev 237601, pandoc-citeproc/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) Copied: pandoc-citeproc/repos/community-staging-i686/PKGBUILD (from rev 237601, pandoc-citeproc/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-06-16 10:03:31 UTC (rev 237602) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=pandoc-citeproc +pkgver=0.10.4.1 +pkgrel=70 +pkgdesc="Supports using pandoc with citeproc" +url="https://hackage.haskell.org/package/$pkgname" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=("ghc" "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") +source=("https://hackage.haskell.org/packages/archive/$pkgname/${pkgver}/$pkgname-${pkgver}.tar.gz") +sha256sums=('6e6b0a89a831f9bfaa33dc0f3dff1792ee1626a5e66e1bd34da9447cd3c7de51') + +build() { + cd "${srcdir}/$pkgname-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir="$pkgname" \ + --libsubdir=\$compiler/site-local/\$pkgid \ + -f-debug -f-test_citeproc -funicode_collation -f-embed_data_files -fbibutils + 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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + rm -f "${pkgdir}/usr/share/doc/$pkgname/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} Copied: pandoc-citeproc/repos/community-staging-x86_64/PKGBUILD (from rev 237601, pandoc-citeproc/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-06-16 10:03:31 UTC (rev 237602) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=pandoc-citeproc +pkgver=0.10.4.1 +pkgrel=70 +pkgdesc="Supports using pandoc with citeproc" +url="https://hackage.haskell.org/package/$pkgname" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=("ghc" "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") +source=("https://hackage.haskell.org/packages/archive/$pkgname/${pkgver}/$pkgname-${pkgver}.tar.gz") +sha256sums=('6e6b0a89a831f9bfaa33dc0f3dff1792ee1626a5e66e1bd34da9447cd3c7de51') + +build() { + cd "${srcdir}/$pkgname-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/$pkgname" --datasubdir="$pkgname" \ + --libsubdir=\$compiler/site-local/\$pkgid \ + -f-debug -f-test_citeproc -funicode_collation -f-embed_data_files -fbibutils + 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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + rm -f "${pkgdir}/usr/share/doc/$pkgname/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +}