Date: Tuesday, August 15, 2017 @ 21:02:58 Author: felixonmars Revision: 251191
upgpkg: cabal-helper 0.7.3.0-6 GHC 8.2.1 rebuild Modified: cabal-helper/trunk/PKGBUILD ----------+ PKGBUILD | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-08-15 18:19:00 UTC (rev 251190) +++ PKGBUILD 2017-08-15 21:02:58 UTC (rev 251191) @@ -4,26 +4,33 @@ pkgname=cabal-helper pkgver=0.7.3.0 -pkgrel=5 +pkgrel=6 pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod" url="https://hackage.haskell.org/package/${pkgname}" license=("AGPL3") arch=('i686' 'x86_64') -depends=('ghc' "haskell-mtl" "haskell-temporary" "haskell-utf8-string") +depends=('ghc-libs' "haskell-mtl" "haskell-temporary" "haskell-utf8-string") conflicts=('haskell-cabal-helper') replaces=('haskell-cabal-helper') -source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha256sums=('794055f5205dd029aceb2fe9aac183880d2b4ef005d1096ee3052710d01192a4') +makedepends=('ghc') +source=('https://github.com/achirkin/cabal-helper/archive/68ceff5916f515e3026a3f40aa44570e47d50a0c.tar.gz') +#source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz" +sha256sums=('de0023c7e47be3030986a2b0e40bc5693096f2dd9a60de40c2111a29b66b0956') +prepare() { + mv $pkgname-68ceff5916f515e3026a3f40aa44570e47d50a0c $pkgname-$pkgver + sed -i 's/import Distribution.Version/import Distribution.Version hiding (showVersion)/' $pkgname-$pkgver/CabalHelper/{Sandbox.hs,Compile.hs,Wrapper.hs} + sed -i 's/, process.*/, process/' $pkgname-$pkgver/$pkgname.cabal +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" - + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -f-dev runhaskell Setup build - runhaskell Setup haddock --hoogle --html runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh @@ -35,8 +42,6 @@ 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/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgname}" runhaskell Setup copy --destdir="${pkgdir}" rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"