Date: Sunday, December 12, 2021 @ 06:54:18 Author: felixonmars Revision: 1068771
archrelease: copy trunk to community-staging-x86_64 Added: haskell-yesod-persistent/repos/community-staging-x86_64/ haskell-yesod-persistent/repos/community-staging-x86_64/PKGBUILD (from rev 1068770, haskell-yesod-persistent/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: haskell-yesod-persistent/repos/community-staging-x86_64/PKGBUILD (from rev 1068770, haskell-yesod-persistent/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-12-12 06:54:18 UTC (rev 1068771) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=yesod-persistent +pkgname=haskell-yesod-persistent +pkgver=1.6.0.7 +pkgrel=87 +pkgdesc="Some helpers for using Persistent from Yesod." +url="http://www.yesodweb.com/" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' "haskell-blaze-builder" "haskell-conduit" "haskell-persistent" + "haskell-resource-pool" "haskell-resourcet" "haskell-yesod-core") +makedepends=('ghc' 'uusi' 'haskell-hspec' 'haskell-wai-extra' 'haskell-persistent-sqlite') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('9312189947a6ba97bec12c057535a54bb024847ee0f08ba50473a78327f7ca25083738f0742c0847d0b329ef0e764412c85ac32aab4ebde2851a29e60e82d337') + +prepare() { + cd $_hkgname-$pkgver + uusi -d persistent-template $_hkgname.cabal +} + +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=-fllvm + 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 --show-details=direct +} + +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 +}