Date: Saturday, January 19, 2019 @ 10:20:13 Author: felixonmars Revision: 424413
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hasql-pool/repos/community-staging-x86_64/ haskell-hasql-pool/repos/community-staging-x86_64/PKGBUILD (from rev 424412, haskell-hasql-pool/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: haskell-hasql-pool/repos/community-staging-x86_64/PKGBUILD (from rev 424412, haskell-hasql-pool/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-01-19 10:20:13 UTC (rev 424413) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Thomas Dziedzic <gos...@gmail.com> + +_hkgname=hasql-pool +pkgname=haskell-hasql-pool +pkgver=0.5 +pkgrel=41 +pkgdesc="A pool of connections for Hasql" +url="https://github.com/nikita-volkov/hasql-pool" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base-prelude' 'haskell-hasql' 'haskell-resource-pool') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('346ef1e40ce71597bc533be5affa4d4e75048a9f0d19e0d3347ba2c528f60d413f2a494dcee80b9911ce6759cf1a221e3132f760ff6ba72dd77ba49652cab2e6') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname \ + --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 +} + +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" +}