Date: Wednesday, February 17, 2021 @ 21:05:55 Author: felixonmars Revision: 862752
archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-classes-base/repos/community-staging-x86_64/PKGBUILD (from rev 862751, haskell-quickcheck-classes-base/trunk/PKGBUILD) Deleted: haskell-quickcheck-classes-base/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 98 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-02-17 21:05:38 UTC (rev 862751) +++ PKGBUILD 2021-02-17 21:05:55 UTC (rev 862752) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=quickcheck-classes-base -pkgname=haskell-quickcheck-classes-base -pkgver=0.6.1.0 -pkgrel=116 -pkgdesc="QuickCheck common typeclasses from 'base'" -url="https://github.com/andrewthad/quickcheck-classes" -license=('MIT') -arch=('x86_64') -depends=('ghc-libs' 'haskell-base-orphans' 'haskell-bifunctors' 'haskell-contravariant' - 'haskell-quickcheck' 'haskell-tagged') -makedepends=('ghc') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('039b1d22ed67de6cedd98b41c61f6a6cd96a6d91e4fc074db7fde2af53a5c24ef429dc3c59cde01532478d94bef7486819c2dc9300826b8ac1669e1f3bec7550') - -prepare() { - cd $_hkgname-$pkgver - sed -i -e '/fail$/d' $_hkgname.cabal - echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs -} - -build() { - cd $_hkgname-$pkgver - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --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 - runhaskell Setup unregister --gen-script - sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh - sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh -} - -check() { - cd $_hkgname-$pkgver - runhaskell Setup test -} - -package() { - cd $_hkgname-$pkgver - - install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh - install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh - runhaskell Setup copy --destdir="$pkgdir" - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE -} Copied: haskell-quickcheck-classes-base/repos/community-staging-x86_64/PKGBUILD (from rev 862751, haskell-quickcheck-classes-base/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-02-17 21:05:55 UTC (rev 862752) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=quickcheck-classes-base +pkgname=haskell-quickcheck-classes-base +pkgver=0.6.1.0 +pkgrel=117 +pkgdesc="QuickCheck common typeclasses from 'base'" +url="https://github.com/andrewthad/quickcheck-classes" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base-orphans' 'haskell-bifunctors' 'haskell-contravariant' + 'haskell-quickcheck' 'haskell-tagged') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('039b1d22ed67de6cedd98b41c61f6a6cd96a6d91e4fc074db7fde2af53a5c24ef429dc3c59cde01532478d94bef7486819c2dc9300826b8ac1669e1f3bec7550') + +prepare() { + cd $_hkgname-$pkgver + sed -i -e '/fail$/d' $_hkgname.cabal + echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs +} + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --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 + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_hkgname-$pkgver + + install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh + install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh + runhaskell Setup copy --destdir="$pkgdir" + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}