Date: Monday, February 12, 2018 @ 18:36:42
  Author: felixonmars
Revision: 293559

upgpkg: haskell-hourglass 0.2.11-1

rebuild with hourglass,0.2.11

Modified:
  haskell-hourglass/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-12 17:58:05 UTC (rev 293558)
+++ PKGBUILD    2018-02-12 18:36:42 UTC (rev 293559)
@@ -4,22 +4,23 @@
 
 _hkgname=hourglass
 pkgname=haskell-hourglass
-pkgver=0.2.10
-pkgrel=6
+pkgver=0.2.11
+pkgrel=1
 pkgdesc="simple performant time related library"
 url="https://github.com/vincenthz/hs-hourglass";
 license=("custom:BSD3")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-mtl' 'haskell-old-locale' 'haskell-tasty' 
'haskell-tasty-hunit'
+             'haskell-tasty-quickcheck')
 
source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";)
-sha512sums=('49287fa4b1f102a3a4b744bc57e109a3c1bc472f65d2e2c0e76749bf6c7abc4279af3ce7035ca9b87b373e65956069472285ac849819fc9e928cd409f33e6244')
+sha512sums=('6af3357be50b5645d8b0c5ec78d924981375c6a6215ee1f9e2a8a3775bab34989829cbec210c5c6c10fd39d14a8b4ed960c3ce46a354e6969414a9177460a9d1')
 
 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 +29,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