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

Felix Yan felixonmars at archlinux.org
Tue Feb 27 09:09:36 UTC 2018


    Date: Tuesday, February 27, 2018 @ 09:09:35
  Author: felixonmars
Revision: 299053

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-text-short/repos/community-staging-x86_64/PKGBUILD (from rev 299052, haskell-text-short/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-02-27 09:09:35 UTC (rev 299053)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=text-short
+pkgname=haskell-text-short
+pkgver=0.1.1
+pkgrel=5
+pkgdesc="Memory-efficient representation of Unicode text strings"
+url="https://github.com/hvr/text-short"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-hashable" "haskell-text")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('cf83092ae3b630e22de8f7fb493fc5daeb7ddbf0f054bf49649483bfcb47701c607973b7625d7b9337839d5728ac9ff9e6b4fec83c055d0db37eefe493f6c302')
+
+build() {
+    cd "${srcdir}/${_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
+    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 "${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