Date: Monday, October 15, 2018 @ 17:28:21 Author: felixonmars Revision: 394242
archrelease: copy trunk to community-staging-x86_64 Added: haskell-http2/repos/community-staging-x86_64/ haskell-http2/repos/community-staging-x86_64/PKGBUILD (from rev 394241, haskell-http2/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: haskell-http2/repos/community-staging-x86_64/PKGBUILD (from rev 394241, haskell-http2/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-15 17:28:21 UTC (rev 394242) @@ -0,0 +1,43 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=http2 +pkgname=haskell-http2 +pkgver=1.6.3 +pkgrel=31 +pkgdesc="HTTP/2.0 library including frames and HPACK" +url="https://github.com/kazu-yamamoto/http2" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' "haskell-case-insensitive" "haskell-psqueues") +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('4227424f8a73181a1036bf4a0593116ebea6d1ac036ea2f5f428128580012bfc0b98e02b6fe0477d561c4f73f9ce2c30302e301727caf0fedbc3743111846e39') + +prepare() { + sed -i '/bytestring-builder/d' $_hkgname-$pkgver/$_hkgname.cabal +} + +build() { + cd "${srcdir}/${_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-devel + 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 "${srcdir}/${_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" +}