Date: Friday, March 19, 2021 @ 19:22:45 Author: felixonmars Revision: 894932
upgpkg: haskell-uuid-types 1.0.4-1: rebuild with uuid 1.3.14, uuid-types 1.0.4 Modified: haskell-uuid-types/trunk/PKGBUILD ----------+ PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-03-19 19:19:40 UTC (rev 894931) +++ PKGBUILD 2021-03-19 19:22:45 UTC (rev 894932) @@ -3,20 +3,21 @@ _hkgname=uuid-types pkgname=haskell-uuid-types -pkgver=1.0.3 -pkgrel=98 +pkgver=1.0.4 +pkgrel=1 pkgdesc="Type definitions for Universally Unique Identifiers" url="https://github.com/aslatter/uuid" license=("BSD") arch=('x86_64') -depends=('ghc-libs' "haskell-hashable" "haskell-random") -makedepends=('ghc') +depends=('ghc-libs' 'haskell-hashable' 'haskell-random') +makedepends=('ghc' 'uusi' 'haskell-quickcheck' 'haskell-tasty' 'haskell-tasty-hunit' + 'haskell-tasty-quickcheck') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('039bccea9ee22388a50e3e233c95afdd3a59f01aa5f552dcd8e8c1ded8f9da210933c58a4d9cc0913c768b587c24ee27fa0eed15e531846ea841b666f513df9e') +sha512sums=('7b3e0382c60f67d65edbe62da67e690266cdfceb5128583cb49efdd04845c57a5bbd708663ee7b583dc120c75e468c234f21ab4e6006a5acaa11bc83a8b01e04') prepare() { cd $_hkgname-$pkgver - sed -i 's/< *1.3/<2/;s/< *1.2/<2/' $_hkgname.cabal + uusi -d ghc-byteorder $_hkgname.cabal } build() { @@ -23,7 +24,7 @@ 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 $MAKEFLAGS runhaskell Setup register --gen-script @@ -32,6 +33,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd $_hkgname-$pkgver
