Date: Wednesday, May 25, 2016 @ 12:22:57 Author: fyan Revision: 176845
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: haskell-haddock-api/repos/community-staging-i686/ haskell-haddock-api/repos/community-staging-i686/PKGBUILD (from rev 176844, haskell-haddock-api/trunk/PKGBUILD) haskell-haddock-api/repos/community-staging-x86_64/ haskell-haddock-api/repos/community-staging-x86_64/PKGBUILD (from rev 176844, haskell-haddock-api/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) Copied: haskell-haddock-api/repos/community-staging-i686/PKGBUILD (from rev 176844, haskell-haddock-api/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-05-25 10:22:57 UTC (rev 176845) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Sergej Pupykin <arch+...@sergej.pp.ru> + +pkgname=haskell-haddock-api +pkgver=2.17.2 +pkgrel=1 +pkgdesc="A documentation-generation tool for Haskell libraries" +url="http://www.haskell.org/haddock/" +license=("BSD3") +arch=('i686' 'x86_64') +depends=("ghc=8.0.1" + "haskell-ghc-paths" + "haskell-haddock-library") +source=("https://hackage.haskell.org/package/haddock-api-${pkgver}/haddock-api-${pkgver}.tar.gz") +sha256sums=('60df55698ebfb5d0a36c15d789a2d95c789fe0f7e61ef0c3be30ab0183d5261e') + +build() { + cd "${srcdir}/haddock-api-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html || warning "Failed to run haddock" + 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}/haddock-api-${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/haddock-api" + 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-haddock-api/repos/community-staging-x86_64/PKGBUILD (from rev 176844, haskell-haddock-api/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-05-25 10:22:57 UTC (rev 176845) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Sergej Pupykin <arch+...@sergej.pp.ru> + +pkgname=haskell-haddock-api +pkgver=2.17.2 +pkgrel=1 +pkgdesc="A documentation-generation tool for Haskell libraries" +url="http://www.haskell.org/haddock/" +license=("BSD3") +arch=('i686' 'x86_64') +depends=("ghc=8.0.1" + "haskell-ghc-paths" + "haskell-haddock-library") +source=("https://hackage.haskell.org/package/haddock-api-${pkgver}/haddock-api-${pkgver}.tar.gz") +sha256sums=('60df55698ebfb5d0a36c15d789a2d95c789fe0f7e61ef0c3be30ab0183d5261e') + +build() { + cd "${srcdir}/haddock-api-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + runhaskell Setup haddock --hoogle --html || warning "Failed to run haddock" + 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}/haddock-api-${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/haddock-api" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}