Date: Sunday, March 20, 2022 @ 00:58:09 Author: felixonmars Revision: 1163141
archrelease: copy trunk to community-staging-x86_64 Added: haskell-monad-logger/repos/community-staging-x86_64/ haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD (from rev 1163140, haskell-monad-logger/trunk/PKGBUILD) ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) Copied: haskell-monad-logger/repos/community-staging-x86_64/PKGBUILD (from rev 1163140, haskell-monad-logger/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-03-20 00:58:09 UTC (rev 1163141) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=monad-logger +pkgname=haskell-monad-logger +pkgver=0.3.36 +pkgrel=182 +pkgdesc="A class of monads which can log messages." +url="https://github.com/snoyberg/monad-logger" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-conduit' 'haskell-conduit-extra' + 'haskell-fast-logger' 'haskell-lifted-base' 'haskell-monad-control' 'haskell-monad-loops' + 'haskell-resourcet' 'haskell-stm-chans' + 'haskell-transformers-base' 'haskell-transformers-compat' 'haskell-unliftio-core') +makedepends=('ghc' 'uusi') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('c2dcf616f9e58be024f0bec144cd60cf78f465c1a8df6cf1ae0d896a44303e2bc8bdc18cf0f2cdf56c4485d1506d23b1417d84c66f327c73362da2aec71abdc0') + +prepare() { + cd $_hkgname-$pkgver + uusi -u fast-logger $_hkgname.cabal +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -ftemplate_haskell + runhaskell Setup build $MAKEFLAGS + 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 $_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 +}