Date: Monday, April 5, 2021 @ 19:40:12 Author: felixonmars Revision: 911983
upgpkg: haskell-colourista 0.1.0.1-1: rebuild with colourista 0.1.0.1 Modified: haskell-colourista/trunk/PKGBUILD ----------+ PKGBUILD | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-05 19:09:13 UTC (rev 911982) +++ PKGBUILD 2021-04-05 19:40:12 UTC (rev 911983) @@ -3,21 +3,20 @@ _hkgname=colourista pkgname=haskell-colourista -pkgver=0.1.0.0 -pkgrel=73 +pkgver=0.1.0.1 +pkgrel=1 pkgdesc="Convenient interface for printing colourful messages based on the ansi-terminal library." url="https://github.com/kowainik/colourista" license=('MPL2') arch=('x86_64') depends=('ghc-libs' 'haskell-ansi-terminal') -makedepends=('ghc') +makedepends=('ghc' 'uusi' 'haskell-hspec') source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") -sha256sums=('bfc95d2b09499c467f0af807ee2418efb572cab322a35c6021386f340dddf4c5') +sha512sums=('505317a7bc25a947a0e8e7311641d5061c2b78382011b80dbf4d25c4de31f8a906b119514d25f9db9b0cec90c9a323d3ba1747a3a706ecdbe239fd0258c5abfd') -prepare(){ +prepare() { cd $_hkgname-$pkgver - echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs - sed -i 's/\^>= 0.10/>= 0.10/' $_hkgname.cabal + gen-setup } build() { @@ -24,7 +23,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 \ --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ --ghc-option='-pie' @@ -36,6 +35,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd $_hkgname-$pkgver
