Date: Saturday, March 7, 2020 @ 12:32:52 Author: felixonmars Revision: 591082
upgpkg: haskell-lens 4.19-1: rebuild with lens 4.19 Modified: haskell-lens/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-07 12:32:47 UTC (rev 591081) +++ PKGBUILD 2020-03-07 12:32:52 UTC (rev 591082) @@ -3,8 +3,8 @@ _hkgname=lens pkgname=haskell-lens -pkgver=4.18.1 -pkgrel=16 +pkgver=4.19 +pkgrel=1 pkgdesc="Lenses, Folds and Traversals" url="https://github.com/ekmett/lens/" license=("BSD") @@ -13,17 +13,24 @@ 'haskell-contravariant' 'haskell-distributive' 'haskell-exceptions' 'haskell-free' 'haskell-hashable' 'haskell-kan-extensions' 'haskell-parallel' 'haskell-profunctors' 'haskell-reflection' 'haskell-semigroupoids' 'haskell-tagged' 'haskell-th-abstraction' - 'haskell-transformers-compat' 'haskell-type-equality' 'haskell-unordered-containers' - 'haskell-vector') -makedepends=('ghc') + 'haskell-transformers-compat' 'haskell-unordered-containers' 'haskell-vector') +makedepends=('ghc' 'haskell-cabal-doctest' 'haskell-doctest' 'haskell-generic-deriving' 'haskell-hunit' + 'haskell-quickcheck' 'haskell-simple-reflect' 'haskell-test-framework' + 'haskell-test-framework-hunit' 'haskell-test-framework-quickcheck2' + 'haskell-test-framework-th') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('4ff415cf1a3747f1fc0c4e653ad3e402bbb637fdaa443d7be95951974da38e76ca568083d2a643e0f25373fc84c4244e5d4735beb60e9a507f07ea18fb494246') +sha512sums=('826b551b63b4e950c55324729e03dc755e54163391851711359de11b0cb6880f47c9f9750e2019febac587b580916ad33a7423ab4a960f1a3cebc5a021b1c7ce') +prepare() { + cd $_hkgname-$pkgver + sed -i -e '/nats/d' -e '/semigroups *>= 0.9/d' $_hkgname.cabal +} + 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 \ -f-j -ftrustworthy -f-safe -ftest-templates -ftest-properties -ftest-hunit \ -ftest-doctests -f-dump-splices -f-old-inline-pragmas -finlining \ @@ -35,6 +42,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd $_hkgname-$pkgver
