Date: Thursday, January 31, 2019 @ 23:53:50 Author: felixonmars Revision: 428956
archrelease: copy trunk to community-staging-x86_64 Added: hoogle/repos/community-staging-x86_64/ hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 428955, hoogle/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: hoogle/repos/community-staging-x86_64/PKGBUILD (from rev 428955, hoogle/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-01-31 23:53:50 UTC (rev 428956) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgname=hoogle +pkgver=5.0.17.4 +pkgrel=2 +pkgdesc="Haskell API Search" +url="http://www.haskell.org/hoogle/" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-aeson' 'haskell-cmdargs' 'haskell-conduit' + 'haskell-conduit-extra' 'haskell-connection' 'haskell-extra' 'haskell-foundation' + 'haskell-hashable' 'haskell-http-conduit' 'haskell-http-types' 'haskell-js-flot' + 'haskell-js-jquery' 'haskell-mmap' 'haskell-network' 'haskell-network-uri' + 'haskell-old-locale' 'haskell-process-extras' 'haskell-resourcet' 'haskell-src-exts' + 'haskell-storable-tuple' 'haskell-tar' 'haskell-uniplate' 'haskell-utf8-string' + 'haskell-vector' 'haskell-wai' 'haskell-wai-logger' 'haskell-warp' 'haskell-warp-tls' + 'haskell-zlib') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('0759104012eb66adad372e51d92252ee992b5588ab52619ac51f62aa6c9f913614f980408fe0628a251831fe4c541d62b11955ad2e1c3d1a3566320245eb9ede') + +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}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}