Date: Saturday, May 19, 2018 @ 21:40:06 Author: felixonmars Revision: 324951
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hasql/repos/community-staging-x86_64/PKGBUILD (from rev 324950, haskell-hasql/trunk/PKGBUILD) Deleted: haskell-hasql/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 136 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 68 insertions(+), 68 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-19 21:39:42 UTC (rev 324950) +++ PKGBUILD 2018-05-19 21:40:06 UTC (rev 324951) @@ -1,68 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Thomas Dziedzic <gos...@gmail.com> - -_hkgname=hasql -pkgname=haskell-hasql -pkgver=1.1.1 -pkgrel=67 -pkgdesc="An efficient PostgreSQL driver and a flexible mapping API" -url="https://github.com/nikita-volkov/hasql" -license=('MIT') -arch=('x86_64') -depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base-prelude' 'haskell-bytestring-strict-builder' - 'haskell-contravariant' 'haskell-contravariant-extras' 'haskell-data-default-class' - 'haskell-dlist' 'haskell-hashable' 'haskell-hashtables' 'haskell-loch-th' - 'haskell-placeholders' 'haskell-postgresql-binary' 'haskell-postgresql-libpq' - 'haskell-profunctors' 'haskell-vector') -makedepends=('ghc' 'haskell-bug' 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tasty-hunit' - 'haskell-quickcheck-instances' 'haskell-quickcheck' 'haskell-rerebase') -checkdepends=('postgresql' 'pifpaf') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('f72097118dbecd87c31394be882aa81a591d5e6d429bbee974cc4d6acaf1a86b9cb1c623666f3ffcc4f258992a3522d1780fbcc5a2edaded18c106bbe1fd28be') - -prepare() { - sed -e 's/tasty-hunit >= 0.9 && < 0.10,/tasty-hunit >= 0.9,/' \ - -e 's/tasty >= 0.12 && < 0.13,/tasty >= 0.12,/' \ - -e 's/tasty-quickcheck >= 0.9 && < 0.10,/tasty-quickcheck >= 0.9,/' \ - -e '/semigroups/d' \ - -i $_hkgname-$pkgver/$_hkgname.cabal - sed -e 's/deriving (Monoid)/deriving (Semigroup, Monoid)/' \ - -e '/instance Semigroup/d' \ - -i $_hkgname-$pkgver/library/Hasql/Private/Commands.hs - sed -e 's/ Monoid)/ Semigroup, Monoid)/' \ - -e '/instance Semigroup/d' \ - -i $_hkgname-$pkgver/library/Hasql/Private/Encoders/Params.hs -} - -build() { - cd "${srcdir}/${_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 - 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 - - eval $(pifpaf run postgresql --host 127.0.0.1 --port 5432) - createuser -s postgres - runhaskell Setup test - pifpaf_stop -} - -package() { - cd "${srcdir}/${_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-hasql/repos/community-staging-x86_64/PKGBUILD (from rev 324950, haskell-hasql/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-19 21:40:06 UTC (rev 324951) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> + +_hkgname=hasql +pkgname=haskell-hasql +pkgver=1.1.1 +pkgrel=68 +pkgdesc="An efficient PostgreSQL driver and a flexible mapping API" +url="https://github.com/nikita-volkov/hasql" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-attoparsec' 'haskell-base-prelude' 'haskell-bytestring-strict-builder' + 'haskell-contravariant' 'haskell-contravariant-extras' 'haskell-data-default-class' + 'haskell-dlist' 'haskell-hashable' 'haskell-hashtables' 'haskell-loch-th' + 'haskell-placeholders' 'haskell-postgresql-binary' 'haskell-postgresql-libpq' + 'haskell-profunctors' 'haskell-vector') +makedepends=('ghc' 'haskell-bug' 'haskell-tasty' 'haskell-tasty-quickcheck' 'haskell-tasty-hunit' + 'haskell-quickcheck-instances' 'haskell-quickcheck' 'haskell-rerebase') +checkdepends=('postgresql' 'pifpaf') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('f72097118dbecd87c31394be882aa81a591d5e6d429bbee974cc4d6acaf1a86b9cb1c623666f3ffcc4f258992a3522d1780fbcc5a2edaded18c106bbe1fd28be') + +prepare() { + sed -e 's/tasty-hunit >= 0.9 && < 0.10,/tasty-hunit >= 0.9,/' \ + -e 's/tasty >= 0.12 && < 0.13,/tasty >= 0.12,/' \ + -e 's/tasty-quickcheck >= 0.9 && < 0.10,/tasty-quickcheck >= 0.9,/' \ + -e '/semigroups/d' \ + -i $_hkgname-$pkgver/$_hkgname.cabal + sed -e 's/deriving (Monoid)/deriving (Semigroup, Monoid)/' \ + -e '/instance Semigroup/d' \ + -i $_hkgname-$pkgver/library/Hasql/Private/Commands.hs + sed -e 's/ Monoid)/ Semigroup, Monoid)/' \ + -e '/instance Semigroup/d' \ + -i $_hkgname-$pkgver/library/Hasql/Private/Encoders/Params.hs +} + +build() { + cd "${srcdir}/${_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 + 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 + + eval $(pifpaf run postgresql --host 127.0.0.1 --port 5432) + createuser -s postgres + runhaskell Setup test + pifpaf_stop +} + +package() { + cd "${srcdir}/${_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" +}