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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 15 15:55:48 UTC 2021


    Date: Wednesday, December 15, 2021 @ 15:55:48
  Author: felixonmars
Revision: 1073235

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-monadrandom/repos/community-staging-x86_64/PKGBUILD (from rev 1073234, haskell-monadrandom/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-15 15:55:48 UTC (rev 1073235)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=MonadRandom
+pkgname=haskell-monadrandom
+pkgver=0.5.3
+pkgrel=34
+pkgdesc="Random-number generation monad."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=("custom")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-primitive' 'haskell-random' 'haskell-transformers-compat')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('dde2a7ad4b6f27f8f4c94653b2a7c04cff1ef7a3dfbf6d036a6ef977f5952e9c7f905f0ad110438bc2764dcc985f04c9a7f1bd25997fd6f81ee55b654a7d6768')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    uusi -u transformers-compat $_hkgname.cabal
+}
+
+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
+}
+
+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