Date: Monday, October 7, 2019 @ 15:39:40 Author: felixonmars Revision: 513826
archrelease: copy trunk to community-staging-x86_64 Added: haskell-fast-logger/repos/community-staging-x86_64/ haskell-fast-logger/repos/community-staging-x86_64/PKGBUILD (from rev 513825, haskell-fast-logger/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-fast-logger/repos/community-staging-x86_64/PKGBUILD (from rev 513825, haskell-fast-logger/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-10-07 15:39:40 UTC (rev 513826) @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=fast-logger +pkgname=haskell-fast-logger +pkgver=2.4.17 +pkgrel=3 +pkgdesc="A fast logging system" +url="https://github.com/kazu-yamamoto/logger" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-auto-update' 'haskell-easy-file' 'haskell-unix-compat' + 'haskell-unix-time') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('d6879e4f8a7c8e6446f64a15a283e1a6f160a7ecbdf3f2ad35523d446a97d3c3262fcef5cdda2ad2d14201c2e6a21bccd190330a1037381fe97b14f60c5d3767') + +build() { + cd $_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 $_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" +}