Date: Sunday, February 18, 2018 @ 09:35:27 Author: felixonmars Revision: 296215
upgpkg: cabal-helper 0.8.0.2-1 rebuild with cabal-helper,0.8.0.2 Modified: cabal-helper/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-02-18 05:56:18 UTC (rev 296214) +++ PKGBUILD 2018-02-18 09:35:27 UTC (rev 296215) @@ -3,31 +3,25 @@ # Contributor: Arch Haskell Team <[email protected]> pkgname=cabal-helper -pkgver=0.7.3.0 -pkgrel=9 +pkgver=0.8.0.2 +pkgrel=1 pkgdesc="Simple interface to some of Cabals configuration state used by ghc-mod" url="https://hackage.haskell.org/package/${pkgname}" license=("AGPL3") arch=('x86_64') -depends=('ghc-libs' "haskell-mtl" "haskell-temporary" "haskell-utf8-string") +depends=('ghc-libs' 'haskell-exceptions' 'haskell-mtl' 'haskell-semigroupoids' 'haskell-temporary' + 'haskell-unix-compat' 'haskell-utf8-string') +makedepends=('ghc' 'haskell-ghc' 'haskell-ghc-paths') conflicts=('haskell-cabal-helper') replaces=('haskell-cabal-helper') -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" -sha512sums=('bd900c8e3183ecd991a17dbb61bdc200f1ebebcfbc3374cbba4c534a829e042ad65251c7a77a492cd819764c85229e0210ae11c2597b2b7e9b5d40dcd5caa870') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('d922422b2749be12fce97cc403e4aab812c9586f35bce89a08aefa2516fc58fc78a88df98355ec7be9140e24f0bf3cb230ac43ce484a60d90754d46c5e2d42ba') -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}" + cd $pkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --libexecdir="/usr/lib" --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -f-dev runhaskell Setup build @@ -37,8 +31,13 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $pkgname-$pkgver + runhaskell Setup test || warning "Tests failed" +} + package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd $pkgname-$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"
