Date: Wednesday, October 31, 2018 @ 22:36:39
  Author: felixonmars
Revision: 400879

archrelease: copy trunk to community-staging-x86_64

Added:
  cryptol/repos/community-staging-x86_64/
  cryptol/repos/community-staging-x86_64/PKGBUILD
    (from rev 400878, cryptol/trunk/PKGBUILD)

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

Copied: cryptol/repos/community-staging-x86_64/PKGBUILD (from rev 400878, 
cryptol/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-10-31 22:36:39 UTC (rev 400879)
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgname=cryptol
+pkgver=2.6.0
+pkgrel=53
+pkgdesc="The Language of Cryptography"
+url="http://www.cryptol.net";
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' 'z3' 'haskell-base-compat' 'haskell-gitrev' 
'haskell-graphscc' 'haskell-heredoc'
+         'haskell-monad-control' 'haskell-monadlib' 'haskell-panic' 
'haskell-random' 'haskell-sbv'
+         'haskell-simple-smt' 'haskell-strict' 'haskell-tf-random' 
'haskell-transformers-base'
+         'haskell-ansi-terminal' 'haskell-blaze-html')
+makedepends=('ghc' 'alex' 'happy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/GaloisInc/cryptol/archive/$pkgver.tar.gz";)
+sha512sums=('445a1656ffd0d260553e041de9b15b6257a4b068b5462d996e8207671c097ea814bc5b7aaeb527b5e9579bd8a3e5e8ced0aaf57c24fbccaa7410342a109e9325')
+
+prepare() {
+    cd $pkgname-$pkgver
+    sed -i 's/<.*0.10/<1/' $pkgname.cabal
+    sed -i '1i{-# language NoMonadFailDesugaring #-}' 
src/Cryptol/ModuleSystem/Renamer.hs src/Cryptol/Prims/Eval.hs 
src/Cryptol/TypeCheck/Infer.hs src/Cryptol/TypeCheck/CheckModuleInstance.hs 
src/Cryptol/Transform/Specialize.hs src/Cryptol/REPL/Monad.hs 
src/Cryptol/REPL/Command.hs
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" 
--datasubdir="$pkgname" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+            -f-static -f-relocatable
+    runhaskell Setup build
+    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 "${srcdir}/${pkgname}-${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"
+}

Reply via email to