Date: Friday, August 25, 2017 @ 14:06:06
  Author: felixonmars
Revision: 253369

addpkg: haskell-sbv 7.1-1

Added:
  haskell-sbv/
  haskell-sbv/repos/
  haskell-sbv/trunk/
  haskell-sbv/trunk/PKGBUILD

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

Added: haskell-sbv/trunk/PKGBUILD
===================================================================
--- haskell-sbv/trunk/PKGBUILD                          (rev 0)
+++ haskell-sbv/trunk/PKGBUILD  2017-08-25 14:06:06 UTC (rev 253369)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Arch Haskell Team <[email protected]>
+
+_hkgname=sbv
+pkgname=haskell-sbv
+pkgver=7.1
+pkgrel=1
+pkgdesc="SMT Based Verification: Symbolic Haskell theorem prover using SMT 
solving"
+url="http://leventerkok.github.com/sbv";
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-ghc' 'haskell-quickcheck' 'haskell-cracknum' 
'haskell-async'
+         'haskell-mtl' 'haskell-random' 'haskell-syb' 
'haskell-data-binary-ieee754'
+         'haskell-generic-deriving')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
+sha512sums=('5f3399281c8e397fe370ab9515ff2766825d99dd1649615d729b166b59eb62582192dccc59ace5ce68b721ad64b510af1b7100e2b0943a1069d82d070e1d2414')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
+    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}/${_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"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}


Property changes on: haskell-sbv/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to