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

Felix Yan felixonmars at archlinux.org
Fri Jun 1 11:42:04 UTC 2018


    Date: Friday, June 1, 2018 @ 11:42:04
  Author: felixonmars
Revision: 336030

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-regex-applicative-text/repos/community-staging-x86_64/PKGBUILD (from rev 336029, haskell-regex-applicative-text/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-01 11:42:04 UTC (rev 336030)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+_hkgname=regex-applicative-text
+pkgname=haskell-regex-applicative-text
+pkgver=0.1.0.1
+pkgrel=10
+pkgdesc="Wrapped regex-applicative primitives to work with Text"
+url="https://github.com/phadej/regex-applicative-text#readme"
+license=("custom:BSD3")
+arch=('x86_64')
+depends=('ghc-libs' "haskell-regex-applicative")
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('8ee1d581498e047a7b759476ce98c43c19656b767790b0f12b8485bc212a71c7115cee5c3e5089392995bc71851025093c406bce9d8ac3c5962675ae06fa4339')
+
+prepare() {
+    sed -i 's/base >= 4.3 && <4.10/base >= 4.3/' $_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}" \
+        --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