[arch-commits] Commit in haskell-vector-th-unbox/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Feb 28 21:54:51 UTC 2021


    Date: Sunday, February 28, 2021 @ 21:54:51
  Author: felixonmars
Revision: 876078

upgpkg: haskell-vector-th-unbox 0.2.1.8-1: rebuild with vector-th-unbox 0.2.1.8

Modified:
  haskell-vector-th-unbox/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-28 21:52:12 UTC (rev 876077)
+++ PKGBUILD	2021-02-28 21:54:51 UTC (rev 876078)
@@ -3,27 +3,22 @@
 
 _hkgname=vector-th-unbox
 pkgname=haskell-vector-th-unbox
-pkgver=0.2.1.7
-pkgrel=147
+pkgver=0.2.1.8
+pkgrel=1
 pkgdesc="Deriver for Data.Vector.Unboxed using Template Haskell"
-url="https://hackage.haskell.org/package/${_hkgname}"
+url="https://github.com/tsurucapital/vector-th-unbox"
 license=("BSD")
 arch=('x86_64')
-depends=('ghc-libs' "haskell-vector")
-makedepends=('ghc')
+depends=('ghc-libs' 'haskell-vector')
+makedepends=('ghc' 'haskell-data-default')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('fa65c32eace3ad93f0df69830eca0334519bbdbb2bbdc511db6e6abffe48c78870fef131dc34451873775a037634a87f0cd0d06dc1c4bc9404af2a86d7593ae1')
+sha512sums=('d2eeff3d2a8066615d29d7a3fd03abaa0e2a5e97801057948224248ff5412bf20bd804f348f8f1700cad2fb75a213bae9e2c09ce470577ecccf5feecb2dac259')
 
-prepare() {
-    cd $_hkgname-$pkgver
-    sed -i 's/< *2.16/<3/;s/< *4.14/<5/' $_hkgname.cabal
-}
-
 build() {
     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 $MAKEFLAGS
     runhaskell Setup register --gen-script
@@ -32,6 +27,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test
+}
+
 package() {
     cd $_hkgname-$pkgver
     



More information about the arch-commits mailing list