Date: Monday, January 15, 2018 @ 07:16:45 Author: felixonmars Revision: 282544
archrelease: copy trunk to community-staging-x86_64 Added: haskell-wai-logger/repos/community-staging-x86_64/ haskell-wai-logger/repos/community-staging-x86_64/PKGBUILD (from rev 282543, haskell-wai-logger/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-wai-logger/repos/community-staging-x86_64/PKGBUILD (from rev 282543, haskell-wai-logger/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-01-15 07:16:45 UTC (rev 282544) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=wai-logger +pkgname=haskell-wai-logger +pkgver=2.3.1 +pkgrel=2 +pkgdesc="A logging system for WAI" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-blaze-builder" "haskell-byteorder" "haskell-case-insensitive" + "haskell-fast-logger" "haskell-http-types" "haskell-network" "haskell-unix-time" + "haskell-wai") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('250737dd326920efbb78dcd1ec270b49e53717091c95498b202452a95d0a811cc5757d32cebfcc8f0ba512c2e9d1c8994ca64a7426df2f1272225f6c276dd61e') + +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" +}