Date: Friday, August 25, 2017 @ 14:19:32 Author: felixonmars Revision: 253373
addpkg: haskell-simple-smt 0.7.0-1 Added: haskell-simple-smt/ haskell-simple-smt/repos/ haskell-simple-smt/trunk/ haskell-simple-smt/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: haskell-simple-smt/trunk/PKGBUILD =================================================================== --- haskell-simple-smt/trunk/PKGBUILD (rev 0) +++ haskell-simple-smt/trunk/PKGBUILD 2017-08-25 14:19:32 UTC (rev 253373) @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=simple-smt +pkgname=haskell-simple-smt +pkgver=0.7.0 +pkgrel=1 +pkgdesc="A simple way to interact with an SMT solver process" +url="https://github.com/yav/simple-smt" +license=("custom:BSD3") +arch=('i686' 'x86_64') +depends=('ghc-libs') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('73a943e8ead12272f0ec8fbd49337f71e25f3213b94d2bea2a61a6bb0fc5ac83b26e30a209b460d2e92d6e10364a5727e1abb93d762d64674a69150b9b0e6e5b') + +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-simple-smt/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property