Date: Sunday, February 16, 2020 @ 23:09:49 Author: felixonmars Revision: 573693
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty-lua/repos/community-staging-x86_64/ haskell-tasty-lua/repos/community-staging-x86_64/PKGBUILD (from rev 573692, haskell-tasty-lua/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: haskell-tasty-lua/repos/community-staging-x86_64/PKGBUILD (from rev 573692, haskell-tasty-lua/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-02-16 23:09:49 UTC (rev 573693) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tasty-lua +pkgname=haskell-tasty-lua +pkgver=0.2.1 +pkgrel=1 +pkgdesc="Write tests in Lua, integrate into tasty." +url="https://github.com/hslua/tasty-lua" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-file-embed' 'haskell-hslua' 'haskell-tasty') +makedepends=('ghc' 'haskell-tasty-hunit') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('d9d56a83ed234974ab93d3de6287e1f1aa6db1fb683091fa4b6c57fd4a38a0f2093c089f06ab4d7bebaf2096eb2d37b76acccd6e8881797f0ac60bc1f66f3c99') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ + --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 +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +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" +}