Date: Sunday, June 6, 2021 @ 20:42:10 Author: felixonmars Revision: 956320
archrelease: copy trunk to community-x86_64 Added: haskell-persistent-postgresql/repos/community-x86_64/PKGBUILD (from rev 956319, haskell-persistent-postgresql/trunk/PKGBUILD) Deleted: haskell-persistent-postgresql/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 128 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-06-06 20:41:54 UTC (rev 956319) +++ PKGBUILD 2021-06-06 20:42:10 UTC (rev 956320) @@ -1,64 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=persistent-postgresql -pkgname=haskell-persistent-postgresql -pkgver=2.13.0.1 -pkgrel=5 -pkgdesc="Backend for the persistent library using postgresql." -url="http://www.yesodweb.com/book/persistent" -license=("MIT") -arch=('x86_64') -depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-conduit' - 'haskell-monad-logger' 'haskell-persistent' 'haskell-postgresql-libpq' - 'haskell-postgresql-simple' 'haskell-resource-pool' 'haskell-resourcet' - 'haskell-string-conversions' 'haskell-unliftio-core') -makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-fast-logger' 'haskell-hspec' - 'haskell-hspec-expectations' 'haskell-hspec-expectations-lifted' - 'haskell-http-api-data' 'haskell-path-pieces' 'haskell-persistent-qq' - 'haskell-persistent-test' 'haskell-quickcheck-instances' 'haskell-unliftio' - 'haskell-unordered-containers' 'haskell-vector') -checkdepends=('pifpaf' 'postgresql') -source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") -sha512sums=('2e20638bc29dc480c63a13ccdac8ab7cc9802af42e73524c0fa567db563e3b7664cef5d573746ee606b583b3deb851aed05f65a892c83faf19e7eed8f5bc9d93') - -prepare() { - cd $_hkgname-$pkgver - # pifpaf's default port - sed -i 's/port=5432/port=9824/' test/PgInit.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 \ - --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ - --ghc-option='-pie' - - 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 - eval $(pifpaf run postgresql --host 127.0.0.1) - createuser -s postgres - createdb test - # https://github.com/yesodweb/persistent/issues/1278 - runhaskell Setup test --show-details=direct || echo "Tests failed" - pifpaf_stop -} - -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 -t "$pkgdir"/usr/share/licenses/$pkgname/ - rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE -} Copied: haskell-persistent-postgresql/repos/community-x86_64/PKGBUILD (from rev 956319, haskell-persistent-postgresql/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-06-06 20:42:10 UTC (rev 956320) @@ -0,0 +1,64 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=persistent-postgresql +pkgname=haskell-persistent-postgresql +pkgver=2.13.0.2 +pkgrel=1 +pkgdesc="Backend for the persistent library using postgresql." +url="http://www.yesodweb.com/book/persistent" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-blaze-builder' 'haskell-conduit' + 'haskell-monad-logger' 'haskell-persistent' 'haskell-postgresql-libpq' + 'haskell-postgresql-simple' 'haskell-resource-pool' 'haskell-resourcet' + 'haskell-string-conversions' 'haskell-unliftio-core') +makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-fast-logger' 'haskell-hspec' + 'haskell-hspec-expectations' 'haskell-hspec-expectations-lifted' + 'haskell-http-api-data' 'haskell-path-pieces' 'haskell-persistent-qq' + 'haskell-persistent-test' 'haskell-quickcheck-instances' 'haskell-unliftio' + 'haskell-unordered-containers' 'haskell-vector') +checkdepends=('pifpaf' 'postgresql') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha512sums=('042f61e1f1fc223548af062c22442c116222eac150e43fc8ac2898909b5989f93934cd8803905833114d5419db621768cc1f89705e30b1710274e947a9bc3ef5') + +prepare() { + cd $_hkgname-$pkgver + # pifpaf's default port + sed -i 's/port=5432/port=9824/' test/PgInit.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 \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + 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 + eval $(pifpaf run postgresql --host 127.0.0.1) + createuser -s postgres + createdb test + # https://github.com/yesodweb/persistent/issues/1278 + runhaskell Setup test --show-details=direct || echo "Tests failed" + pifpaf_stop +} + +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 -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}