Date: Monday, November 27, 2017 @ 12:05:12 Author: felixonmars Revision: 269743
archrelease: copy trunk to community-staging-x86_64 Added: haskell-ghc-syb-utils/repos/community-staging-x86_64/ haskell-ghc-syb-utils/repos/community-staging-x86_64/PKGBUILD (from rev 269742, haskell-ghc-syb-utils/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-ghc-syb-utils/repos/community-staging-x86_64/PKGBUILD (from rev 269742, haskell-ghc-syb-utils/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-11-27 12:05:12 UTC (rev 269743) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=ghc-syb-utils +pkgname=haskell-ghc-syb-utils +pkgver=0.2.3.3 +pkgrel=3 +pkgdesc="Scrap Your Boilerplate utilities for the GHC API." +url="https://github.com/nominolo/ghc-syb" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-ghc' 'haskell-syb') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('03c63f67ebf8b50634c23b04d743caabc58764084c585c42b87b2e27fdf4528a6f811351c5b172a128588f24cd19cb620015cbd4598573177e6df05a5edd8f3b') + +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" +}