[arch-commits] Commit in hledger-ui/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jun 25 03:46:21 UTC 2021


    Date: Friday, June 25, 2021 @ 03:46:20
  Author: felixonmars
Revision: 967343

upgpkg: hledger-ui 1.21-36: rebuild with ghc 9.0.1

Modified:
  hledger-ui/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-25 03:45:46 UTC (rev 967342)
+++ PKGBUILD	2021-06-25 03:46:20 UTC (rev 967343)
@@ -3,7 +3,7 @@
 
 pkgname=hledger-ui
 pkgver=1.21
-pkgrel=35
+pkgrel=36
 pkgdesc="Curses-style terminal interface for the hledger accounting system"
 url="http://hledger.org"
 license=("GPL")
@@ -13,10 +13,18 @@
          'haskell-fsnotify' 'haskell-microlens' 'haskell-microlens-platform' 'haskell-megaparsec'
          'haskell-safe' 'haskell-split' 'haskell-text-zipper'
          'haskell-vector' 'haskell-brick' 'haskell-vty')
-makedepends=('ghc')
-source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('eeb969c0eca213fa0906a0750c17169257524661db7f562264d7e10cbc680270ca035aed235fd3e258215d7d7283c42088c244af061150a104cec37317710e5d')
+makedepends=('ghc' 'uusi')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        $pkgname-ghc9.patch::https://github.com/simonmichael/hledger/commit/4578d5d32951ae3ef22c2445fe75c43b8f845a5d.patch)
+sha512sums=('eeb969c0eca213fa0906a0750c17169257524661db7f562264d7e10cbc680270ca035aed235fd3e258215d7d7283c42088c244af061150a104cec37317710e5d'
+            'ea22eda7ef4042ec33c66d39ca8b293064f812efe1d4a75d62dc6bd5043920b774a6a36c1c210d14f80a26415034f08abde75ff58ab110fd569c18f0d1e9d2da')
 
+prepare() {
+    cd $pkgname-$pkgver
+    patch -p2 -i ../$pkgname-ghc9.patch
+    uusi -u base $pkgname.cabal
+}
+
 build() {
     cd $pkgname-$pkgver
     runhaskell Setup configure -O --enable-executable-dynamic --disable-library-vanilla \




More information about the arch-commits mailing list