Date: Wednesday, February 14, 2018 @ 15:40:54 Author: felixonmars Revision: 294408
upgpkg: stylish-haskell 0.9.0.2-1 rebuild with haskell-src-exts,1.20.1 hlint,2.1 hoogle,5.0.16 stylish-haskell,0.9.0.2 Modified: stylish-haskell/trunk/PKGBUILD ----------+ PKGBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-02-14 15:01:22 UTC (rev 294407) +++ PKGBUILD 2018-02-14 15:40:54 UTC (rev 294408) @@ -3,23 +3,23 @@ # Contributor: Arch Haskell Team <[email protected]> pkgname=stylish-haskell -pkgver=0.8.1.0 -pkgrel=43 +pkgver=0.9.0.2 +pkgrel=1 pkgdesc="Haskell code prettifier" url="https://github.com/jaspervdj/stylish-haskell" license=("custom:BSD3") arch=('x86_64') -depends=('ghc-libs' "haskell-aeson" "haskell-src-exts" "haskell-mtl" "haskell-optparse-applicative" - "haskell-strict" "haskell-syb" "haskell-yaml") -makedepends=('ghc') +depends=('ghc-libs' 'haskell-aeson' 'haskell-file-embed' 'haskell-mtl' 'haskell-optparse-applicative' + 'haskell-src-exts' 'haskell-strict' 'haskell-syb' 'haskell-yaml') +makedepends=('ghc' 'haskell-hunit' 'haskell-test-framework' 'haskell-test-framework-hunit') source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('617b4a089b66a895b49f7ecb205d91f4736843b95b393460e08b3276410f8f994e613b135c4c2dec69323d1b333061165db8878baf33c9dd2131dbeb59a25366') +sha512sums=('da7a72d87778d9a9846c7fdde25538e8e83e742229416eb037ad366209521a25fe8cd28e3bc7afbb8d3ec996f5be7b0bbc0332090aef3c8f30d960828122cdca') 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}" --datasubdir="$pkgname" \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests --datasubdir="$pkgname" \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -f-old_base runhaskell Setup build @@ -29,8 +29,13 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $pkgname-$pkgver + runhaskell Setup test +} + 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"
