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

Felix Yan felixonmars at gemini.archlinux.org
Thu Aug 18 22:00:42 UTC 2022


    Date: Thursday, August 18, 2022 @ 22:00:42
  Author: felixonmars
Revision: 1269280

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

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

Copied: haskell-unix-compat/repos/community-staging-x86_64/PKGBUILD (from rev 1269279, haskell-unix-compat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-18 22:00:42 UTC (rev 1269280)
@@ -0,0 +1,47 @@
+# 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.6
+pkgrel=14
+pkgdesc="Portable POSIX-compatibility layer."
+url="https://github.com/jacobstanley/unix-compat"
+license=('BSD3')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hunit' 'haskell-extra' 'haskell-hspec' 'haskell-monad-parallel'
+             'haskell-temporary')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('0d84e61b5d1836b30912dd33abb01bc99aa949b58b881282f9ca42ab246bdd5b9066316240ea82e71e846cf15a25f9a60f24cad361503bc1cfe02f0e388d851c')
+
+build() {
+    cd $_hkgname-$pkgver
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+        -f-old-time
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
+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