Date: Thursday, July 12, 2018 @ 21:57:19 Author: felixonmars Revision: 358385
archrelease: copy trunk to community-staging-x86_64 Added: haskell-simple-sendfile/repos/community-staging-x86_64/ haskell-simple-sendfile/repos/community-staging-x86_64/PKGBUILD (from rev 358384, haskell-simple-sendfile/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: haskell-simple-sendfile/repos/community-staging-x86_64/PKGBUILD (from rev 358384, haskell-simple-sendfile/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-07-12 21:57:19 UTC (rev 358385) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=simple-sendfile +pkgname=haskell-simple-sendfile +pkgver=0.2.27 +pkgrel=61 +pkgdesc="Cross platform library for the sendfile system call" +url="https://hackage.haskell.org/package/${_hkgname}" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-network') +makedepends=('ghc' 'haskell-hunit' 'haskell-conduit' 'haskell-conduit-extra' 'haskell-resourcet' + 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('a4cc0385619d5047cb56c449d474796a549265100738a1da7f5106e2c67cacf3c6ca0b14d8ca982ed7e1a16263227c6be521735e75293bf04dddbbdbf578cc08') + +build() { + cd "${srcdir}/${_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 \ + -fallow-bsd + 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +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" +}