[arch-commits] Commit in pandoc/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Dec 16 18:36:25 UTC 2017
Date: Saturday, December 16, 2017 @ 18:36:24
Author: felixonmars
Revision: 274607
fix tests
Modified:
pandoc/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-16 17:50:34 UTC (rev 274606)
+++ PKGBUILD 2017-12-16 18:36:24 UTC (rev 274607)
@@ -29,6 +29,12 @@
source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('9235255b8a421bf072e37074ee435635f8b32bc5efc38b8ef1629cb19c9d08a300d498185e32f589c58e312cfcf3f5e5dbed06fc29537f329de428015c701430')
+prepare() {
+ cd "${srcdir}/$pkgname-${pkgver}"
+ # TODO: find a better solution
+ sed -i "s|let env' = dynlibEnv ++ |let env' = dynlibEnv ++ [(\"LD_LIBRARY_PATH\", \"$PWD/dist/build\")] ++ |" test/Tests/Command.hs
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -45,9 +51,7 @@
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
- # TODO: find a way to run pandoc executable in tests with dynamic executable enabled
- # LD_PRELOAD=$(ls dist/build/libHSpandoc-*-ghc*.so)
- runhaskell Setup test || warning "Tests failed"
+ runhaskell Setup test
}
package() {
More information about the arch-commits
mailing list