Date: Wednesday, February 14, 2018 @ 05:27:12
  Author: felixonmars
Revision: 293946

upgpkg: haskell-src-meta 0.8.0.2-1

rebuild with haskell-src-meta,0.8.0.2

Modified:
  haskell-src-meta/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-14 05:21:59 UTC (rev 293945)
+++ PKGBUILD    2018-02-14 05:27:12 UTC (rev 293946)
@@ -4,22 +4,22 @@
 
 _hkgname=haskell-src-meta
 pkgname=haskell-src-meta
-pkgver=0.8.0.1
-pkgrel=18
+pkgver=0.8.0.2
+pkgrel=1
 pkgdesc="Parse source to template-haskell abstract syntax"
 url="https://github.com/bmillwood/haskell-src-meta";
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-src-exts" "haskell-syb" "haskell-th-orphans")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-src-exts' 'haskell-syb' 'haskell-th-orphans')
+makedepends=('ghc' 'haskell-test-framework' 'haskell-test-framework-hunit')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
-sha512sums=('5adcb205c45fe68ec99dc7c0c1a0ddd153146d6602eeb3dff9b2e0203f6ffcb5c5925c300b06f7c91a9914fe7a99bb48a1031468512ee38cd19dd31d819e4600')
+sha512sums=('efe78ba96b4c6c1192fb57a2f345d20fde4a434b2580f67043b407d892dba58a6f42fc6df2f5d1ee5e5e704686e6412176671aa28609ea5c8c0f310827e0b238')
 
 build() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    cd $_hkgname-$pkgver
     
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic 
--disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --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
@@ -28,8 +28,13 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
-    cd "${srcdir}/${_hkgname}-${pkgver}"
+    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"

Reply via email to