[arch-commits] Commit in haskell-decimal/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jan 7 12:53:59 UTC 2018


    Date: Sunday, January 7, 2018 @ 12:53:58
  Author: felixonmars
Revision: 279938

upgpkg: haskell-decimal 0.5.1-1

rebuild with Decimal,0.5.1

Modified:
  haskell-decimal/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-07 12:53:41 UTC (rev 279937)
+++ PKGBUILD	2018-01-07 12:53:58 UTC (rev 279938)
@@ -4,22 +4,23 @@
 
 _hkgname=Decimal
 pkgname=haskell-decimal
-pkgver=0.4.2
-pkgrel=4
+pkgver=0.5.1
+pkgrel=1
 pkgdesc="Decimal numbers with variable precision"
 url="https://github.com/PaulJohnson/Haskell-Decimal"
 license=("custom:BSD3")
 arch=('x86_64')
 depends=('ghc-libs')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-test-framework'
+             'haskell-test-framework-quickcheck2' 'haskell-test-framework-hunit')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('1dbfa497c037fb1aabe70fe7ad086472de46027bf5a7a1571ea3d9e8ab37a4136f099e2ad34ec316050b5a07d3728f3f7fe870c494b5521e1223228d09f5a15d')
+sha512sums=('9ca3d6f1de96ef4eb6e5e2e3bd7002019ea41e7d404ad9f566926b84ed1ff4aa4a57aa071ef82f00764008469476b5ca196d7c43553885732663f7608c2995fb')
 
 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"



More information about the arch-commits mailing list