Date: Thursday, October 19, 2017 @ 04:20:51 Author: felixonmars Revision: 263410
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-pandoc-types/repos/community-staging-i686/ haskell-pandoc-types/repos/community-staging-i686/PKGBUILD (from rev 263409, haskell-pandoc-types/trunk/PKGBUILD) haskell-pandoc-types/repos/community-staging-x86_64/ haskell-pandoc-types/repos/community-staging-x86_64/PKGBUILD (from rev 263409, haskell-pandoc-types/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 39 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 39 ++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Copied: haskell-pandoc-types/repos/community-staging-i686/PKGBUILD (from rev 263409, haskell-pandoc-types/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-10-19 04:20:51 UTC (rev 263410) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=pandoc-types +pkgname=haskell-pandoc-types +pkgver=1.17.2 +pkgrel=3 +pkgdesc="Types for representing a structured document" +url="http://johnmacfarlane.net/pandoc" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "haskell-aeson" "haskell-quickcheck" "haskell-syb") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('49c1a4f6cdb1be825d77ef84d39358f6899744ee28ae1bef6c178125332afadaca87e8082f3a0fc5c3da249f017b943cce90b6bf1bad19bac0dac4674bab5716') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${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}/${_hkgname}-${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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +} Copied: haskell-pandoc-types/repos/community-staging-x86_64/PKGBUILD (from rev 263409, haskell-pandoc-types/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-10-19 04:20:51 UTC (rev 263410) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=pandoc-types +pkgname=haskell-pandoc-types +pkgver=1.17.2 +pkgrel=3 +pkgdesc="Types for representing a structured document" +url="http://johnmacfarlane.net/pandoc" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc-libs' "haskell-aeson" "haskell-quickcheck" "haskell-syb") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('49c1a4f6cdb1be825d77ef84d39358f6899744ee28ae1bef6c178125332afadaca87e8082f3a0fc5c3da249f017b943cce90b6bf1bad19bac0dac4674bab5716') + +build() { + cd "${srcdir}/${_hkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${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}/${_hkgname}-${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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}