Date: Wednesday, September 23, 2020 @ 06:15:46 Author: felixonmars Revision: 711443
archrelease: copy trunk to community-x86_64 Added: haskell-persistent-qq/repos/community-x86_64/PKGBUILD (from rev 711442, haskell-persistent-qq/trunk/PKGBUILD) Deleted: haskell-persistent-qq/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 100 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-09-23 06:15:28 UTC (rev 711442) +++ PKGBUILD 2020-09-23 06:15:46 UTC (rev 711443) @@ -1,50 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=persistent-qq -pkgname=haskell-persistent-qq -pkgver=2.9.1.1 -pkgrel=147 -pkgdesc="Provides a quasi-quoter for raw SQL for persistent" -url="https://github.com/yesod-web/persistent" -license=('MIT') -arch=('x86_64') -depends=('ghc-libs' 'haskell-src-meta' 'haskell-persistent') -makedepends=('ghc' 'haskell-aeson' 'haskell-fast-logger' 'haskell-hspec' 'haskell-hunit' - 'haskell-monad-logger' 'haskell-persistent-sqlite' 'haskell-persistent-template' - 'haskell-resourcet' 'haskell-unliftio') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('3fbdaefe6b5304ca8076b7dae3eab0ac08d624da1e595fcb29e24c2dfae1af376855b67802f0badb5f0b812c9dcda7cbc6e0b6cd26da618b6fe378866a39cd5f') - -build() { - cd $_hkgname-$pkgver - - if (( CHECKFUNC )); then - _opts=('--enable-tests') - else - _opts=('--disable-tests') - fi - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \ - --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-persistent-qq/repos/community-x86_64/PKGBUILD (from rev 711442, haskell-persistent-qq/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-23 06:15:46 UTC (rev 711443) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=persistent-qq +pkgname=haskell-persistent-qq +pkgver=2.9.2 +pkgrel=1 +pkgdesc="Provides a quasi-quoter for raw SQL for persistent" +url="https://github.com/yesod-web/persistent" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-src-meta' 'haskell-persistent') +makedepends=('ghc' 'haskell-aeson' 'haskell-fast-logger' 'haskell-hspec' 'haskell-hunit' + 'haskell-monad-logger' 'haskell-persistent-sqlite' 'haskell-persistent-template' + 'haskell-resourcet' 'haskell-unliftio') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('48d6783abf366b327e68e5a1619585c056836885e552b6596eda056cf7758a8b426c3cf27ac7c67cb772bd482de9afbe7365b7647bbf31c529089810b5d5dd97') + +build() { + cd $_hkgname-$pkgver + + if (( CHECKFUNC )); then + _opts=('--enable-tests') + else + _opts=('--disable-tests') + fi + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \ + --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 +}