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

Felix Yan felixonmars at archlinux.org
Wed Oct 23 08:56:12 UTC 2019


    Date: Wednesday, October 23, 2019 @ 08:56:11
  Author: felixonmars
Revision: 518598

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

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

Copied: haskell-simple-sendfile/repos/community-staging-x86_64/PKGBUILD (from rev 518597, haskell-simple-sendfile/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-10-23 08:56:11 UTC (rev 518598)
@@ -0,0 +1,45 @@
+# 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.29
+pkgrel=1
+pkgdesc="Cross platform library for the sendfile system call"
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("BSD")
+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=('d2e5a605e5ebf437ce6c2d15114ce8045a1cbc33a4537598e2c94888f26b9d758aa9c1d690c5a96963db69d5edf691d375e3fac0f9828bf68b84b3341ae7bbe6')
+
+build() {
+    cd $_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 $_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