[arch-commits] Commit in haskell-unix-compat/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Aug 26 05:30:46 UTC 2018


    Date: Sunday, August 26, 2018 @ 05:30:46
  Author: felixonmars
Revision: 374015

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-unix-compat/repos/community-staging-x86_64/
  haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD
    (from rev 374014, haskell-unix-compat/trunk/PKGBUILD)

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

Copied: haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD (from rev 374014, haskell-unix-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-26 05:30:46 UTC (rev 374015)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Nagy <danielnagy at gmx de>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: Don Stewart <dons at galois.com>
+
+pkgname=haskell-unix-compat
+_hkgname=unix-compat
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Portable POSIX-compatibility layer."
+url="https://hackage.haskell.org/package/unix-compat"
+license=('BSD3')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-old-time')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('4b4a0267e8f84ed8ce86b47e9e02e760bbda09e7d441320ed9f9dae7f861ada25ed906a0410ef8c516b71b0ea29a1e0aa0c8ec7724ecdf889931705f000bb0d4')
+
+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
+    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"
+}



More information about the arch-commits mailing list