[arch-commits] Commit in darcs/trunk (PKGBUILD sandi-0.4.patch)

Felix Yan fyan at archlinux.org
Thu Jun 9 04:06:21 UTC 2016


    Date: Thursday, June 9, 2016 @ 06:06:20
  Author: fyan
Revision: 178767

upgpkg: darcs 2.12.0-7

rebuild with EdisonAPI-1.3.1, JuicyPixels-3.2.7.1, MissingH-1.4.0.0, aeson-compat-0.3.4.0, aws-0.14.0, cairo-0.13.3.0, cereal-0.5.2.0, cgrep-6.6.14, cryptonite-0.16, extra-1.4.9, glib-0.13.4.0, gtk3-0.14.5, hackage-security-0.5.2.1, haddock-api-2.17.3, haddock-library-1.4.2, hlint-1.9.34, hslogger-1.2.10, http-types-0.9.1, language-javascript-0.6.0.5, pandoc-1.17.1, pandoc-citeproc-0.10, pango-0.13.3.0, pipes-4.2.0, retry-0.7.4, sandi-0.4.0, shake-0.15.8, statistics-0.13.3.0, unix-compat-0.4.2.0

Added:
  darcs/trunk/sandi-0.4.patch
Modified:
  darcs/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   13 ++++++++++---
 sandi-0.4.patch |   13 +++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-06-09 04:03:31 UTC (rev 178766)
+++ PKGBUILD	2016-06-09 04:06:20 UTC (rev 178767)
@@ -4,7 +4,7 @@
 
 pkgname=darcs
 pkgver=2.12.0
-pkgrel=6
+pkgrel=7
 pkgdesc="A distributed, interactive, smart revision control system"
 url="http://darcs.net"
 license=("GPL")
@@ -18,9 +18,16 @@
              "haskell-regex-compat-tdfa" "haskell-tar" "haskell-text"
              "haskell-transformers-compat" "haskell-unix-compat" "haskell-utf8-string"
              "haskell-vector" "haskell-zip-archive" "haskell-zlib")
-source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha256sums=('17318d1b49ca4b1aa00a4bffc2ab30a448e7440ce1945eed9bf382d77582308d')
+source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        sandi-0.4.patch)
+sha256sums=('17318d1b49ca4b1aa00a4bffc2ab30a448e7440ce1945eed9bf382d77582308d'
+            'f144bf4ce7ee9f718e086267a936e2b113f9eb08c23688cbedb40276538562d3')
 
+prepare() {
+    sed -i 's/sandi        >= 0.2 && < 0.4,/sandi        >= 0.2 \&\& < 0.5,/' $pkgname-$pkgver/$pkgname.cabal
+    (cd $pkgname-$pkgver && patch -p1 -i ../sandi-0.4.patch)
+}
+
 build() {
     cd "${srcdir}/${pkgname}-${pkgver}"
     

Added: sandi-0.4.patch
===================================================================
--- sandi-0.4.patch	                        (rev 0)
+++ sandi-0.4.patch	2016-06-09 04:06:20 UTC (rev 178767)
@@ -0,0 +1,13 @@
+--- a/src/Darcs/Util/Hash.hs	2016-06-09 11:45:13.303203462 +0800
++++ b/src/Darcs/Util/Hash.hs	2016-06-09 11:45:29.330047632 +0800
+@@ -27,8 +27,8 @@
+ base16 :: BS.ByteString -> BS.ByteString
+ debase16 :: BS.ByteString -> Maybe BS.ByteString
+ 
+-base16 = BS8.map toLower . B16.b16_enc
+-debase16 bs = case B16.b16_dec $ BS8.map toUpper bs of
++base16 = BS8.map toLower . B16.b16Enc
++debase16 bs = case B16.b16Dec $ BS8.map toUpper bs of
+                 Right (s, _) -> Just s
+                 Left _ -> Nothing
+ 



More information about the arch-commits mailing list