Date: Monday, January 10, 2022 @ 17:48:24 Author: felixonmars Revision: 1099623
archrelease: copy trunk to community-staging-x86_64 Added: haskell-smtlib/repos/community-staging-x86_64/ haskell-smtlib/repos/community-staging-x86_64/PKGBUILD (from rev 1099622, haskell-smtlib/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: haskell-smtlib/repos/community-staging-x86_64/PKGBUILD (from rev 1099622, haskell-smtlib/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-01-10 17:48:24 UTC (rev 1099623) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=smtLib +pkgname=haskell-smtlib +pkgver=1.1 +pkgrel=14 +pkgdesc="A library for working with the SMTLIB format" +url="https://github.com/yav/smtLib" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('11a550ec03a0c59b2f7a0f24b325cdb4c981d75b1d25785a76ba644e7c75ca843e8c99d193f650f6d4ee991e6a7f505d9f000bd13e5b1289d7d3fae66fe33124') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm + runhaskell Setup build $MAKEFLAGS + 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 $_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 +}