Date: Wednesday, March 21, 2018 @ 12:45:10 Author: felixonmars Revision: 309890
addpkg: haskell-bsb-http-chunked 0.0.0.2-1 Added: haskell-bsb-http-chunked/ haskell-bsb-http-chunked/repos/ haskell-bsb-http-chunked/trunk/ haskell-bsb-http-chunked/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Added: haskell-bsb-http-chunked/trunk/PKGBUILD =================================================================== --- haskell-bsb-http-chunked/trunk/PKGBUILD (rev 0) +++ haskell-bsb-http-chunked/trunk/PKGBUILD 2018-03-21 12:45:10 UTC (rev 309890) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> + +_hkgname=bsb-http-chunked +pkgname=haskell-bsb-http-chunked +pkgver=0.0.0.2 +pkgrel=1 +pkgdesc="Chunked HTTP transfer encoding for bytestring builders" +url="http://github.com/sjakobi/bsb-http-chunked" +license=('custom:BSD3') +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('8ce8ba1065e2ec219d6bb663b597e049bac403dc8d061907e677781333d878be1fed48d4a3f6c34801afa5e89bdbd965b8dee71515c7fb2e6f58e8957194fb22') + +prepare() { + cd $_hkgname-$pkgver + sed -i 's/bytestring-builder < 0.11/bytestring < 0.11/' $_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}" \ + --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" +} Property changes on: haskell-bsb-http-chunked/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
