Date: Saturday, April 9, 2022 @ 22:24:58 Author: felixonmars Revision: 1183260
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty/repos/community-staging-x86_64/ haskell-tasty/repos/community-staging-x86_64/PKGBUILD (from rev 1183259, haskell-tasty/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: haskell-tasty/repos/community-staging-x86_64/PKGBUILD (from rev 1183259, haskell-tasty/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2022-04-09 22:24:58 UTC (rev 1183260) @@ -0,0 +1,40 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=tasty +pkgname=haskell-tasty +pkgver=1.4.2.1 +pkgrel=67 +pkgdesc="Modern and extensible testing framework" +url="http://documentup.com/UnkindPartition/tasty" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-clock' 'haskell-optparse-applicative' + 'haskell-tagged' 'haskell-unbounded-delays' 'haskell-wcwidth') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('71a0b995fa9b7f02d25a62cb161a6af8421731fd1484f129d893869f3439498b1bf71c74863e34f1f50073d3a503b4ca088e784234b8758a788e5df05baee90f') + +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 \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \ + -fclock + 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 +}