[arch-commits] Commit in haskell-simple-sendfile/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Dec 11 07:36:12 UTC 2017


    Date: Monday, December 11, 2017 @ 07:36:11
  Author: felixonmars
Revision: 273659

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 273658, haskell-simple-sendfile/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: haskell-simple-sendfile/repos/community-staging-x86_64/PKGBUILD (from rev 273658, haskell-simple-sendfile/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-11 07:36:11 UTC (rev 273659)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=simple-sendfile
+pkgname=haskell-simple-sendfile
+pkgver=0.2.26
+pkgrel=1
+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=('53692cb8eb79c0e1993af1e14c13659679a8613bc5631f6e172f2fe10ab2764f80edc5ef58fe5e8b9e836a4c7eaff49336c3c927ef742a64e3fb4b9b014e811f')
+
+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"
+}



More information about the arch-commits mailing list