[arch-commits] Commit in haskell-text-icu/repos (3 files)

Felix Yan felixonmars at archlinux.org
Thu Apr 15 12:11:16 UTC 2021


    Date: Thursday, April 15, 2021 @ 12:11:15
  Author: felixonmars
Revision: 919023

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-text-icu/repos/community-staging-x86_64/
  haskell-text-icu/repos/community-staging-x86_64/PKGBUILD
    (from rev 919022, haskell-text-icu/trunk/PKGBUILD)
  haskell-text-icu/repos/community-staging-x86_64/icu68.patch
    (from rev 919022, haskell-text-icu/trunk/icu68.patch)

-------------+
 PKGBUILD    |   45 +++++++++++++++++++++++++++++++++++++++++++++
 icu68.patch |   18 ++++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: haskell-text-icu/repos/community-staging-x86_64/PKGBUILD (from rev 919022, haskell-text-icu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-04-15 12:11:15 UTC (rev 919023)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=text-icu
+pkgname=haskell-text-icu
+pkgver=0.7.0.1
+pkgrel=38
+pkgdesc="Bindings to the ICU library"
+url="https://github.com/bos/text-icu"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'icu')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
+        icu68.patch)
+sha512sums=('54551ce0d629bffcca32fc855bfcdf2e24282359ce3a32578a98de4f4ad15378fa7df98c59d73323549a2ac873b10a10202bda02f5be83fbe1ab945aac5e50a9'
+            '315e366a2d428df2a1ff0064fea15c26cce4581754e9259c832b0f4ad71a50b96e02e9d76548e93f5d7682930d0826d02766db17105110bcf06add542aa67a77')
+
+prepare() {
+    cd $_hkgname-$pkgver
+    patch -Np1 -i ../icu68.patch
+}
+
+build() {
+    cd $_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
+    runhaskell Setup build $MAKEFLAGS
+    runhaskell Setup register --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd $_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"
+    install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Copied: haskell-text-icu/repos/community-staging-x86_64/icu68.patch (from rev 919022, haskell-text-icu/trunk/icu68.patch)
===================================================================
--- community-staging-x86_64/icu68.patch	                        (rev 0)
+++ community-staging-x86_64/icu68.patch	2021-04-15 12:11:15 UTC (rev 919023)
@@ -0,0 +1,18 @@
+diff -upr text-icu-0.7.0.1.orig/cbits/text_icu.c text-icu-0.7.0.1/cbits/text_icu.c
+--- text-icu-0.7.0.1.orig/cbits/text_icu.c	2015-01-09 06:58:03.000000000 +0200
++++ text-icu-0.7.0.1/cbits/text_icu.c	2020-12-19 08:34:48.487152611 +0200
+@@ -1,3 +1,5 @@
++#include <stdbool.h>
++
+ #include "hs_text_icu.h"
+ 
+ UBreakIterator* __hs_ubrk_open(UBreakIteratorType type, const char *locale,
+@@ -305,7 +307,7 @@ int32_t __hs_u_strFoldCase(UChar *dest,
+ 
+ int32_t __hs_u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2)
+ {
+-    return u_strCompareIter(iter1, iter2, TRUE);
++    return u_strCompareIter(iter1, iter2, true);
+ }
+ 
+ UBlockCode __hs_ublock_getCode(UChar32 c)



More information about the arch-commits mailing list