Date: Sunday, January 14, 2018 @ 07:58:43 Author: felixonmars Revision: 281890
archrelease: copy trunk to community-staging-x86_64 Added: haskell-microlens-mtl/repos/community-staging-x86_64/ haskell-microlens-mtl/repos/community-staging-x86_64/PKGBUILD (from rev 281889, haskell-microlens-mtl/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: haskell-microlens-mtl/repos/community-staging-x86_64/PKGBUILD (from rev 281889, haskell-microlens-mtl/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-01-14 07:58:43 UTC (rev 281890) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=microlens-mtl +pkgname=haskell-microlens-mtl +pkgver=0.1.11.0 +pkgrel=6 +pkgdesc="microlens support for Reader/Writer/State from mtl" +url="https://github.com/aelve/microlens" +license=('custom:BSD3') +arch=('x86_64') +depends=('ghc-libs' 'haskell-microlens' 'haskell-mtl' 'haskell-transformers-compat') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('8f55e0ee5ead834003df878573760ec6d36a359ab683dac3667bc562192bf7cadd56bf467a972e64233bfea5005d2289d91ad808aae5c5556631260a606af1b5') + +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" +}