Date: Friday, August 26, 2022 @ 16:11:04 Author: felixonmars Revision: 1283044
archrelease: copy trunk to community-staging-x86_64 Added: haskell-htf/repos/community-staging-x86_64/ haskell-htf/repos/community-staging-x86_64/PKGBUILD (from rev 1283043, haskell-htf/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: haskell-htf/repos/community-staging-x86_64/PKGBUILD (from rev 1283043, haskell-htf/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-08-26 16:11:04 UTC (rev 1283044) @@ -0,0 +1,48 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=HTF +pkgname=haskell-htf +pkgver=0.15.0.0 +pkgrel=37 +pkgdesc="The Haskell Test Framework" +url="https://github.com/skogsbaer/HTF/" +license=("LGPL2") +arch=('x86_64') +depends=('ghc-libs' 'haskell-diff' 'haskell-hunit' 'haskell-quickcheck' 'haskell-aeson' + 'haskell-base64-bytestring' 'haskell-cpphs' 'haskell-src' 'haskell-lifted-base' + 'haskell-monad-control' 'haskell-old-time' 'haskell-random' 'haskell-regex-compat' + 'haskell-vector' 'haskell-xmlgen') +makedepends=('ghc' 'haskell-aeson-pretty' 'haskell-temporary' 'haskell-unordered-containers') +source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") +sha256sums=('d812c570804f300b7c8c5c5c5c40cea4ad87ffce699988c11a17ed9073fa4b9b') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' + + LD_LIBRARY_PATH="$PWD"/dist/build 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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test --show-details=direct +} + +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 -t "$pkgdir"/usr/share/licenses/$pkgname/ + rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE +}