Date: Tuesday, January 22, 2019 @ 06:08:57 Author: felixonmars Revision: 426782
upgpkg: haskell-hasql-pool 0.5.0.1-1 rebuild with hasql-pool 0.5.0.1 Modified: haskell-hasql-pool/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-01-22 06:02:13 UTC (rev 426781) +++ PKGBUILD 2019-01-22 06:08:57 UTC (rev 426782) @@ -3,22 +3,23 @@ _hkgname=hasql-pool pkgname=haskell-hasql-pool -pkgver=0.5 -pkgrel=42 +pkgver=0.5.0.1 +pkgrel=1 pkgdesc="A pool of connections for Hasql" url="https://github.com/nikita-volkov/hasql-pool" license=('MIT') arch=('x86_64') depends=('ghc-libs' 'haskell-base-prelude' 'haskell-hasql' 'haskell-resource-pool') -makedepends=('ghc') +makedepends=('ghc' 'haskell-hspec') +checkdepends=('pifpaf' 'postgresql') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('346ef1e40ce71597bc533be5affa4d4e75048a9f0d19e0d3347ba2c528f60d413f2a494dcee80b9911ce6759cf1a221e3132f760ff6ba72dd77ba49652cab2e6') +sha512sums=('a648491fc87473de269a3be381e67615ce5016f38b8da7a53fac120ca6656cf55e28ead8c1cb3ef9a1d5ba2a6ce6c77a4670edafae81b8f4beb8a9b92abe72a7') build() { cd $_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 runhaskell Setup build runhaskell Setup register --gen-script @@ -27,6 +28,15 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + + eval $(pifpaf run postgresql --host 127.0.0.1 --port 5432) + createuser -s postgres + runhaskell Setup test + pifpaf_stop +} + package() { cd $_hkgname-$pkgver
