Date: Wednesday, November 29, 2017 @ 13:51:51 Author: felixonmars Revision: 270691
upgpkg: haskell-skylighting 0.4.4.1-1 rebuild with skylighting,0.4.4.1 Modified: haskell-skylighting/trunk/PKGBUILD ----------+ PKGBUILD | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-11-29 13:43:33 UTC (rev 270690) +++ PKGBUILD 2017-11-29 13:51:51 UTC (rev 270691) @@ -3,8 +3,8 @@ _hkgname=skylighting pkgname=haskell-skylighting -pkgver=0.4.4 -pkgrel=2 +pkgver=0.4.4.1 +pkgrel=1 pkgdesc="Syntax highlighting library" url="https://github.com/jgm/skylighting" license=('GPL2') @@ -13,15 +13,16 @@ 'haskell-blaze-html' 'haskell-case-insensitive' 'haskell-hxt' 'haskell-mtl' 'haskell-pretty-show' 'haskell-regex-pcre' 'haskell-safe' 'haskell-text' 'haskell-utf8-string') -makedepends=('ghc') +makedepends=('ghc' 'haskell-hunit' 'haskell-tasty' 'haskell-tasty-golden' 'haskell-tasty-hunit' + 'haskell-random' 'haskell-diff') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('b3907027958917a18a3c9d59fbd2be94e5a6eb14320d914a9c56aa8ef79f926380a6f50dfb7ec8a2b889e27e6084405f9b9f0f1c154021716625d918fc6fcdb0') +sha512sums=('0f74409658313523cb77632a031ee9a7ec0186a44f904b3daac6a9583272454f1529c6aa1cd95900ebee7f972fec8cddc924f69ce721ced76a34776308d78da7') build() { cd "${srcdir}/${_hkgname}-${pkgver}" runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ -fsystem-pcre runhaskell Setup build @@ -31,6 +32,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd "${srcdir}/${_hkgname}-${pkgver}"
