Date: Wednesday, July 28, 2021 @ 08:48:39 Author: felixonmars Revision: 988592
archrelease: copy trunk to community-staging-x86_64 Added: haskell-authenticate-oauth/repos/community-staging-x86_64/ haskell-authenticate-oauth/repos/community-staging-x86_64/PKGBUILD (from rev 988591, haskell-authenticate-oauth/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-authenticate-oauth/repos/community-staging-x86_64/PKGBUILD (from rev 988591, haskell-authenticate-oauth/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-07-28 08:48:39 UTC (rev 988592) @@ -0,0 +1,39 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=authenticate-oauth +pkgname=haskell-authenticate-oauth +pkgver=1.7 +pkgrel=6 +pkgdesc="Library to authenticate with OAuth for Haskell web applications." +url="https://github.com/yesodweb/authenticate" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-http-client' 'haskell-crypto-pubkey-types' 'haskell-rsa' + 'haskell-data-default' 'haskell-base64-bytestring' 'haskell-sha' 'haskell-random' + 'haskell-http-types' 'haskell-blaze-builder' 'haskell-transformers-compat') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('c216d05051971715a834f2831278833fb685d91b7c0c8c1cf9732a3b39795a2dcf596bf7e5670df25ee3713c64496599043a7ec0092c538c759f2965f1230e57') + +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 $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 +} + +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 +}