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

Felix Yan felixonmars at archlinux.org
Fri Dec 1 08:23:09 UTC 2017


    Date: Friday, December 1, 2017 @ 08:23:08
  Author: felixonmars
Revision: 270905

upgpkg: haskell-tagsoup 0.14.2-1

rebuild with tagsoup,0.14.2

Modified:
  haskell-tagsoup/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-01 08:17:44 UTC (rev 270904)
+++ PKGBUILD	2017-12-01 08:23:08 UTC (rev 270905)
@@ -4,24 +4,23 @@
 
 _hkgname=tagsoup
 pkgname=haskell-tagsoup
-pkgver=0.14.1
-pkgrel=6
+pkgver=0.14.2
+pkgrel=1
 pkgdesc="Parsing and extracting information from (possibly malformed) HTML/XML documents"
 url="http://community.haskell.org/~ndm/tagsoup/"
 license=("custom:BSD3")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-text")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-text')
+makedepends=('ghc' 'haskell-quickcheck')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('3c29882664b838c6156e44158558fa20e8003d9a0d135f478df84465cce9f0da8791db86eb445f28002ccb90e281fb84d26c85639a22f842aa926bc78a0e25f9')
+sha512sums=('fb2fed58857a168783f6cdd1905503b386f2cc39183cc250acfcc7ed1713e2d85b084eb5682d230afe6372b3dfdcb90111358aacfabe200558e9e64f0a16a1a4')
 
 build() {
     cd "${srcdir}/${_hkgname}-${pkgver}"
-    
+
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
-        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
-            -f-testprog
+        --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
     runhaskell Setup unregister --gen-script
@@ -29,9 +28,14 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd "${srcdir}/${_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"
     runhaskell Setup copy --destdir="${pkgdir}"



More information about the arch-commits mailing list