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

Felix Yan felixonmars at archlinux.org
Tue Jan 16 09:34:00 UTC 2018


    Date: Tuesday, January 16, 2018 @ 09:34:00
  Author: felixonmars
Revision: 283164

upgpkg: haskell-project-template 0.2.0.1-1

rebuild with project-template,0.2.0.1

Modified:
  haskell-project-template/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-16 09:30:04 UTC (rev 283163)
+++ PKGBUILD	2018-01-16 09:34:00 UTC (rev 283164)
@@ -4,24 +4,23 @@
 
 _hkgname=project-template
 pkgname=haskell-project-template
-pkgver=0.2.0
-pkgrel=90
+pkgver=0.2.0.1
+pkgrel=1
 pkgdesc="Specify Haskell project templates and generate files"
 url="https://github.com/fpco/haskell-ide"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-base64-bytestring" "haskell-conduit"
-         "haskell-conduit-extra" "haskell-mtl" "haskell-resourcet"
-         "haskell-text")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-base64-bytestring' 'haskell-conduit' 'haskell-conduit-extra'
+         'haskell-mtl' 'haskell-resourcet' 'haskell-text')
+makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('923c0d9e5cac14c05474adc743cfb8030ed8e08e69c4eb35b77c2cb1c64b44f10058693d1a5880ba983040ea9dbf1f28f815cd274a75de302f3afdb928210cad')
+sha512sums=('bc5824086ba8dfaff4ff64c5115d37ea5e496d7692f1120b11c2a878e522119d362c7d119ccf7b9cc064c58f9ce6382b5e24a69cdac5ac5d683c4d616e2c66ea')
 
 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
@@ -30,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