Date: Sunday, February 9, 2020 @ 11:29:27 Author: felixonmars Revision: 565276
archrelease: copy trunk to community-staging-x86_64 Added: haskell-esqueleto/repos/community-staging-x86_64/ haskell-esqueleto/repos/community-staging-x86_64/PKGBUILD (from rev 565275, haskell-esqueleto/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: haskell-esqueleto/repos/community-staging-x86_64/PKGBUILD (from rev 565275, haskell-esqueleto/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-02-09 11:29:27 UTC (rev 565276) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=esqueleto +pkgname=haskell-esqueleto +pkgver=3.3.1 +pkgrel=1 +pkgdesc="Type-safe EDSL for SQL queries on persistent backends." +url="https://github.com/bitemyapp/esqueleto" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-blaze-html' 'haskell-conduit' + 'haskell-monad-logger' 'haskell-persistent' 'haskell-resourcet' 'haskell-tagged' + 'haskell-unliftio' 'haskell-unordered-containers') +makedepends=('ghc') # 'haskell-exceptions' 'haskell-vector') # Not enabled yet +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('b5b6172b166c8934eb10f5676e31dce2eedae20829844c1e3a8fa863b9d80f3fd0d6458a3656a98f91470b452a39c1d8edd3a5a5703dd83fa341bc6aefb7997e') + +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 \ + -f-mysql -f-postgresql + 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" +}