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

Felix Yan felixonmars at archlinux.org
Fri Apr 26 07:00:22 UTC 2019


    Date: Friday, April 26, 2019 @ 07:00:21
  Author: felixonmars
Revision: 454111

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 454110, haskell-unix-compat/trunk/PKGBUILD)

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

Copied: haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD (from rev 454110, haskell-unix-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-04-26 07:00:21 UTC (rev 454111)
@@ -0,0 +1,40 @@
+# 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=6
+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 $_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"
+}



More information about the arch-commits mailing list