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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jun 16 18:01:43 UTC 2022


    Date: Thursday, June 16, 2022 @ 18:01:42
  Author: felixonmars
Revision: 1238163

upgpkg: haskell-protolude 0.3.1-1: rebuild with protolude 0.3.1

Modified:
  haskell-protolude/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-16 17:59:33 UTC (rev 1238162)
+++ PKGBUILD	2022-06-16 18:01:42 UTC (rev 1238163)
@@ -3,23 +3,20 @@
 
 _hkgname=protolude
 pkgname=haskell-protolude
-pkgver=0.3.0
-pkgrel=146
+pkgver=0.3.1
+pkgrel=1
 pkgdesc="A sensible set of defaults for writing custom Preludes."
 url="https://github.com/sdiehl/protolude"
 license=("MIT")
 arch=('x86_64')
-depends=('ghc-libs' 'haskell-async' 'haskell-hashable'
-         'haskell-transformers-compat')
+depends=('ghc-libs' 'haskell-async' 'haskell-hashable' 'haskell-transformers-compat')
 makedepends=('ghc' 'uusi')
 source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
-sha512sums=('0941e344320e09fca457ce0be31b1fbb7c715a11ea371263d029942cb649bfb1194b012493e31697c5a05bd3e4de5108bcd2c82c79c9f2f30b260959ec8f0738')
+sha512sums=('5f723e7f688d81cc23e94c63d58e8e2c0591869d97c2aacf0f0913a2f2c30963646cb49ca72b44bff6fa16e1e5cd2ae28b6fa4c1dd4a20e4b514cfc616daf911')
 
 prepare() {
     cd $_hkgname-$pkgver
-    uusi -d mtl-compat -u base -u ghc-prim -u hashable -u transformers-compat $_hkgname.cabal
-    # https://github.com/protolude/protolude/pull/123#issuecomment-864426312
-    sed -i 's/MIN_VERSION_base(4,9,0)/MIN_VERSION_base(9,9,9)/' src/Protolude/Base.hs
+    uusi -d mtl-compat $_hkgname.cabal
 }
 
 build() {
@@ -26,7 +23,7 @@
     cd $_hkgname-$pkgver
 
     runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
-        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname \
+        --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname --enable-tests \
         --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm
     runhaskell Setup build $MAKEFLAGS
     runhaskell Setup register --gen-script
@@ -35,6 +32,11 @@
     sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+    cd $_hkgname-$pkgver
+    runhaskell Setup test --show-details=direct
+}
+
 package() {
     cd $_hkgname-$pkgver
 



More information about the arch-commits mailing list