Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / haskell-tamarin-prover-theory
Commits: d30ffc09 by Felix Yan at 2023-09-07T21:44:36+03:00 upgpkg: 1.8.0-1: rebuild with tamarin-prover-utils 1.8.0, tamarin-prover-term 1.8.0, tamarin-prover-theory 1.8.0, tamarin-prover-sapic 1.8.0, tamarin-prover-export 1.8.0, tamarin-prover-accountability 1.8.0, tamarin-prover 1.8.0 - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -3,24 +3,39 @@ _hkgname=tamarin-prover-theory pkgname=haskell-tamarin-prover-theory -pkgver=1.6.1 -pkgrel=146 +pkgver=1.8.0 +pkgrel=1 pkgdesc="Security protocol types and constraint solver library for the tamarin prover" url="http://www.infsec.ethz.ch/research/software/tamarin" license=("GPL") arch=('x86_64') -depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-dlist' 'haskell-fclabels' - 'haskell-parallel' 'haskell-safe' 'haskell-uniplate' 'haskell-tamarin-prover-utils' +depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-attoparsec' 'haskell-dlist' + 'haskell-fclabels' 'haskell-parallel' 'haskell-regex-pcre' 'haskell-regex-posix' + 'haskell-safe' 'haskell-split' 'haskell-uniplate' 'haskell-tamarin-prover-utils' 'haskell-tamarin-prover-term') -makedepends=('ghc') +makedepends=('ghc' 'uusi') source=("https://github.com/tamarin-prover/tamarin-prover/archive/$pkgver/tamarin-prover-$pkgver.tar.gz") -sha512sums=('dc6b91b1669055913a0aefc9a969812bf252185480fbf67588e7458289b1e1b64bf0729e9bee043513ecd5a57cd0c9477512e80861c6956c08b5e29d90211f62') +sha512sums=('62d8da7a46d521f85fa4544c676b5c7a6d0f26770eb4169fc3aef66e9b1df61753fc1e1fca9531cbe29d971807cc04f7af80c4c9f9c4bb2bae632c6e1fb32662') + +prepare() { + cd tamarin-prover-$pkgver/lib/theory + uusi -r regex-pcre-builtin:regex-pcre $_hkgname.cabal + + sed -i '/import qualified Data.Binary/a import Data.Foldable (asum)' src/Theory/Constraint/Solver/Sources.hs + sed -i '/import qualified Data.Set/a import Data.Foldable (asum)' src/Theory/Text/Parser/Token.hs + sed -i '/import Control.Category/a import Data.Foldable (asum)' src/Theory/Text/Parser/Formula.hs + sed -i '/import qualified Data.Text.Encoding/a import Data.Foldable (asum)' src/Theory/Text/Parser/Rule.hs + sed -i '/import Data.Either/a import Data.Foldable (asum)' src/Theory/Text/Parser/Signature.hs + sed -i '/import Control.Category/a import Data.Foldable (asum)' src/Theory/Text/Parser/Proof.hs + sed -i '/import Data.Functor/a import Data.Foldable (asum)' src/Theory/Text/Parser/Lemma.hs + sed -i '/import Data.Label/a import Data.Foldable (asum)' src/Theory/Text/Parser.hs +} build() { cd tamarin-prover-$pkgver/lib/theory runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm runhaskell Setup build $MAKEFLAGS runhaskell Setup register --gen-script @@ -29,6 +44,11 @@ build() { sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } +check() { + cd tamarin-prover-$pkgver/lib/theory + runhaskell Setup test --show-details=direct +} + package() { cd tamarin-prover-$pkgver/lib/theory View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-tamarin-prover-theory/-/commit/d30ffc09ba35cf5b388b68aee8c02d5d48c38795 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/haskell-tamarin-prover-theory/-/commit/d30ffc09ba35cf5b388b68aee8c02d5d48c38795 You're receiving this email because of your account on gitlab.archlinux.org.