[arch-commits] Commit in haskell-tasty-discover/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 30 11:12:10 UTC 2020
Date: Wednesday, December 30, 2020 @ 11:12:09
Author: felixonmars
Revision: 798815
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-tasty-discover/repos/community-staging-x86_64/
haskell-tasty-discover/repos/community-staging-x86_64/PKGBUILD
(from rev 798814, haskell-tasty-discover/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: haskell-tasty-discover/repos/community-staging-x86_64/PKGBUILD (from rev 798814, haskell-tasty-discover/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-12-30 11:12:09 UTC (rev 798815)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=tasty-discover
+pkgname=haskell-tasty-discover
+pkgver=4.2.2
+pkgrel=23
+pkgdesc="Test discovery for the tasty framework"
+url="http://git.coop/lwm/tasty-discover"
+license=('MIT')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-glob')
+makedepends=('ghc' 'haskell-hedgehog' 'haskell-tasty' 'haskell-tasty-hedgehog' 'haskell-tasty-hspec'
+ 'haskell-tasty-hunit' 'haskell-tasty-quickcheck' 'haskell-tasty-smallcheck')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('42a0d9c79e3c80780fbf65b9069586d908eaea8cdad62b35120369cfc1fa14f7155b8aba27356d6f454c6fb292bcd3f637ce59827795bdf5cce4e9ab5f9e7792')
+
+build() {
+ cd $_hkgname-$pkgver
+
+ # Hack to allow ghc execute tasty-discover when building tests
+ export PATH="$PWD/dist/build/$_hkgname:$PATH"
+ export LD_LIBRARY_PATH="$PWD/dist/build"
+
+ # Test could be built before executable, so build an executable first
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla
+ runhaskell Setup build $MAKEFLAGS
+
+ 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 $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
+}
+
+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
+}
More information about the arch-commits
mailing list