[arch-commits] Commit in haskell-safe-exceptions/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Jan 11 17:52:11 UTC 2022


    Date: Tuesday, January 11, 2022 @ 17:52:11
  Author: felixonmars
Revision: 1100653

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-safe-exceptions/repos/community-staging-x86_64/
  haskell-safe-exceptions/repos/community-staging-x86_64/PKGBUILD
    (from rev 1100652, haskell-safe-exceptions/trunk/PKGBUILD)

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

Copied: haskell-safe-exceptions/repos/community-staging-x86_64/PKGBUILD (from rev 1100652, haskell-safe-exceptions/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-01-11 17:52:11 UTC (rev 1100653)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=safe-exceptions
+pkgname=haskell-safe-exceptions
+pkgver=0.1.7.2
+pkgrel=27
+pkgdesc="Safe, consistent, and easy exception handling"
+url="https://github.com/fpco/safe-exceptions"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hspec' 'haskell-void')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('592cd1b611262a24dc1673ec283059223b47e70a33df22c05ff7222096027afa6358336e6c8e30256a6e40b71d59d59a90021ccd998a8ee6e193aa62d152c5ab')
+
+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 --ghc-option=-fllvm
+    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