Date: Wednesday, February 19, 2020 @ 10:51:11 Author: felixonmars Revision: 576437
upgpkg: haskell-binary-orphans 1.0.1-1: rebuild with binary-orphans 1.0.1 Modified: haskell-binary-orphans/trunk/PKGBUILD ----------+ PKGBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-02-19 10:40:52 UTC (rev 576436) +++ PKGBUILD 2020-02-19 10:51:11 UTC (rev 576437) @@ -3,22 +3,22 @@ _hkgname=binary-orphans pkgname=haskell-binary-orphans -pkgver=0.1.8.0 -pkgrel=127 +pkgver=1.0.1 +pkgrel=1 pkgdesc="Orphan instances for binary" url="https://github.com/phadej/binary-orphans" license=("BSD") arch=('x86_64') -depends=('ghc-libs' "haskell-aeson" "haskell-case-insensitive" "haskell-hashable" "haskell-scientific" - "haskell-tagged" "haskell-unordered-containers" "haskell-vector" - "haskell-text-binary" "haskell-vector-binary-instances") -makedepends=('ghc') +depends=('ghc-libs') +makedepends=('ghc' 'haskell-quickcheck' 'haskell-quickcheck-instances' 'haskell-tasty' + 'haskell-tasty-quickcheck' 'haskell-tagged') source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('78bfef3338cbb8f30e72d7b70695240fd70e812e4f4c006af0bf84674320a055262c7b516dece417e84ac46d920eb68f10665d7d136f819e6e202de32124c6a2') +sha512sums=('067df608ec5fee2907c1648c19116a4de7a237c41101e811ba02789fbe22c5726443d4950b03bd156ad8ea336acc6c71da3efe7a6cf1127519ec5eb9778ec11d') prepare() { cd $_hkgname-$pkgver - sed -i -e 's/< *1.9/<2/' -e 's/<.*4.11/<5/' -e 's/<.*1.3/<2/' -e 's/<.*0.8/<1/' -e 's/< *1.2.1/<2/' $_hkgname.cabal + echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs + sed -i 's/< *0.8.7/<1/' $_hkgname.cabal } build() { @@ -25,7 +25,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 runhaskell Setup register --gen-script @@ -34,6 +34,11 @@ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + package() { cd $_hkgname-$pkgver
