Date: Friday, June 16, 2017 @ 09:51:53 Author: felixonmars Revision: 237597
upgpkg: cabal-helper 0.7.3.0-3 rebuild with ghc,8.0.2 Modified: cabal-helper/trunk/PKGBUILD ----------+ PKGBUILD | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-06-16 09:48:13 UTC (rev 237596) +++ PKGBUILD 2017-06-16 09:51:53 UTC (rev 237597) @@ -2,23 +2,22 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> # Contributor: Arch Haskell Team <arch-hask...@haskell.org> -pkgbase=cabal-helper -pkgname=(cabal-helper haskell-cabal-helper) +pkgname=cabal-helper pkgver=0.7.3.0 -pkgrel=2 +pkgrel=3 pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod" -url="https://hackage.haskell.org/package/${pkgbase}" +url="https://hackage.haskell.org/package/${pkgname}" license=("AGPL3") arch=('i686' 'x86_64') -makedepends=("ghc=8.0.1" "haskell-mtl" "haskell-temporary" "haskell-utf8-string") -source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz") +depends=("ghc" "haskell-mtl" "haskell-temporary" "haskell-utf8-string") +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha256sums=('794055f5205dd029aceb2fe9aac183880d2b4ef005d1096ee3052710d01192a4') build() { - cd "${srcdir}/${pkgbase}-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" - runhaskell Setup configure -O --enable-library-profiling --enable-shared \ - --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --libexecdir="/usr/lib" \ + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \ --libsubdir=\$compiler/site-local/\$pkgid \ -f-dev runhaskell Setup build @@ -29,24 +28,16 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } -package_cabal-helper() { - depends=('gmp' 'libffi') +package() { + cd "${srcdir}/${pkgname}-${pkgver}" - cd "${srcdir}/${pkgbase}-${pkgver}" - runhaskell Setup copy --destdir="${pkgdir}" - rm -r "$pkgdir"/usr/{lib/ghc-*,share} -} - -package_haskell-cabal-helper() { - pkgdesc="Simple interface to some of Cabal's configuration state used by ghc-mod (docs and libraries)" - depends=("${makedepends[@]}" 'cabal-helper') - cd "${srcdir}/${pkgbase}-${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" install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" - ln -s "/usr/share/doc/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}" + ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}" runhaskell Setup copy --destdir="${pkgdir}" rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" - rm "$pkgdir"/usr/lib/*-linux-ghc-*/cabal-helper-$pkgver/cabal-helper-wrapper + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete }