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

Felix Yan felixonmars at archlinux.org
Wed Dec 23 22:20:00 UTC 2020


    Date: Wednesday, December 23, 2020 @ 22:19:59
  Author: felixonmars
Revision: 785498

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

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

Copied: haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD (from rev 785497, haskell-unix-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-12-23 22:19:59 UTC (rev 785498)
@@ -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.2
+pkgrel=8
+pkgdesc="Portable POSIX-compatibility layer."
+url="https://github.com/jacobstanley/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=('0a0a98e03edb7c6ab4401a022c3e90f7598b24930cb22ba04711c3f57b8f87990c6669d5cda07196b61d36cb6e0fa8b281822fa99b199c3b78cfccd0bc3f70be')
+
+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 $MAKEFLAGS
+    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