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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 15 16:00:42 UTC 2021


    Date: Wednesday, December 15, 2021 @ 16:00:42
  Author: felixonmars
Revision: 1073245

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-foundation/repos/community-staging-x86_64/
  haskell-foundation/repos/community-staging-x86_64/PKGBUILD
    (from rev 1073244, haskell-foundation/trunk/PKGBUILD)

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

Copied: haskell-foundation/repos/community-staging-x86_64/PKGBUILD (from rev 1073244, haskell-foundation/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-15 16:00:42 UTC (rev 1073245)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+
+_hkgname=foundation
+pkgname=haskell-foundation
+pkgver=0.0.26.1
+pkgrel=32
+pkgdesc="Alternative prelude with batteries and no dependencies"
+url="https://github.com/haskell-foundation/foundation"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-basement')
+makedepends=('ghc' 'uusi' 'haskell-doctest')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('56285e445dbf58204fffb3824a2f6144c3ef8eeb1630a5f5e9a658bc216a9bbb4db6f215e1e9b11bb516a389e23a9fc3275242d060b42db6b82b6a449224988a')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    gen-setup
+}
+
+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 \
+            -f-experimental -f-minimal-deps -f-doctest -flinktest -f-bounds-check
+    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