[arch-commits] Commit in haskell-unicode-transforms/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Mar 10 00:49:48 UTC 2019


    Date: Sunday, March 10, 2019 @ 00:49:47
  Author: felixonmars
Revision: 438837

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-unicode-transforms/repos/community-staging-x86_64/
  haskell-unicode-transforms/repos/community-staging-x86_64/PKGBUILD
    (from rev 438836, haskell-unicode-transforms/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: haskell-unicode-transforms/repos/community-staging-x86_64/PKGBUILD (from rev 438836, haskell-unicode-transforms/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-03-10 00:49:47 UTC (rev 438837)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=unicode-transforms
+pkgname=haskell-unicode-transforms
+pkgver=0.3.5
+pkgrel=3
+pkgdesc="Unicode transforms (normalization NFC/NFD/NFKC/NFKD)"
+url="https://github.com/ekmett/unicode-transforms/"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-bitarray')
+makedepends=('ghc')
+source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
+sha512sums=('3d1da63160b5207b360979ad12c79127effb63196eedc0024c23b751ac58b82d1fc0772e263b0db58f9ea071d1c310bb780871185462eb013a32c07db2d28cc8')
+
+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 \
+            -f-dev -f-has-icu -f-has-llvm
+    runhaskell Setup build
+    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"
+}


More information about the arch-commits mailing list