Date: Thursday, June 9, 2022 @ 20:26:28 Author: felixonmars Revision: 1229753
upgpkg: haskell-unix-compat 0.6-1: rebuild with unix-compat 0.6 Modified: haskell-unix-compat/trunk/PKGBUILD ----------+ PKGBUILD | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-06-09 20:18:11 UTC (rev 1229752) +++ PKGBUILD 2022-06-09 20:26:28 UTC (rev 1229753) @@ -5,23 +5,25 @@ pkgname=haskell-unix-compat _hkgname=unix-compat -pkgver=0.5.4 +pkgver=0.6 pkgrel=1 pkgdesc="Portable POSIX-compatibility layer." url="https://github.com/jacobstanley/unix-compat" license=('BSD3') arch=('x86_64') -depends=('ghc-libs' 'haskell-old-time') -makedepends=('ghc') +depends=('ghc-libs') +makedepends=('ghc' 'haskell-hunit' 'haskell-extra' 'haskell-hspec' 'haskell-monad-parallel' + 'haskell-temporary') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('3987e83bd239823c031fe60aa0d25149810a4c1301bc54049be49371bd9b3af22a1c3bfde289309d419dedc4525ce3d5c2fca992b536135b51636fff1d5624c9') +sha512sums=('0d84e61b5d1836b30912dd33abb01bc99aa949b58b881282f9ca42ab246bdd5b9066316240ea82e71e846cf15a25f9a60f24cad361503bc1cfe02f0e388d851c') build() { cd $_hkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname \ - --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -f-old-time runhaskell Setup build $MAKEFLAGS runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script @@ -29,6 +31,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test --show-details=direct +} + package() { cd $_hkgname-$pkgver
