Date: Friday, May 24, 2019 @ 13:13:47 Author: felixonmars Revision: 469611
archrelease: copy trunk to community-staging-x86_64 Added: cryptol/repos/community-staging-x86_64/ cryptol/repos/community-staging-x86_64/PKGBUILD (from rev 469610, cryptol/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: cryptol/repos/community-staging-x86_64/PKGBUILD (from rev 469610, cryptol/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-05-24 13:13:47 UTC (rev 469611) @@ -0,0 +1,41 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=cryptol +pkgver=2.7.0 +pkgrel=3 +pkgdesc="The Language of Cryptography" +url="http://www.cryptol.net" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'z3' 'haskell-base-compat' 'haskell-cryptohash-sha1' '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=('e46b6ebf242d57287c8032db4c1763917acbfc9add76c92db35b5d3538df617248ffe20754e20ebc97e594150e309ac92cf1d3b17c3389895e2ca26f95a007f9') + +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" +}