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

Felix Yan felixonmars at archlinux.org
Thu Dec 28 13:03:55 UTC 2017


    Date: Thursday, December 28, 2017 @ 13:03:54
  Author: felixonmars
Revision: 276397

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-text/repos/community-staging-x86_64/
  haskell-text/repos/community-staging-x86_64/PKGBUILD
    (from rev 276396, haskell-text/trunk/PKGBUILD)

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

Copied: haskell-text/repos/community-staging-x86_64/PKGBUILD (from rev 276396, haskell-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-28 13:03:54 UTC (rev 276397)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+
+_hkgname=text
+pkgname=haskell-text
+pkgver=1.2.3.0
+pkgrel=1
+pkgdesc="An efficient packed Unicode text type."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('custom:BSD2')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-quickcheck-unicode'
+             'haskell-random' 'haskell-test-framework' 'haskell-test-framework-hunit'
+             'haskell-test-framework-quickcheck2')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7533a185a1e8a9c14cdec6b20ddeb51b7b858afff4d749c38e61b8745239b525b2a032111ab3f12030466c03c373d5b542073f5457c200db5b579c6c97d2d9db')
+
+prepare() {
+    sed -i 's/QuickCheck >= 2.7 && < 2.10,/QuickCheck >= 2.7,/' $_hkgname-$pkgver/$_hkgname.cabal
+}
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+    
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \
+        --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+          -f-developer -f-integer-simple -f-bytestring-builder
+    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
+}
+
+check() {
+    cd $_hkgname-$pkgver
+    LC_CTYPE=en_US.UTF-8 runhaskell Setup test || warning "Tests failed"
+}
+
+package() {
+    cd "${srcdir}/${_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