[arch-commits] Commit in haskell-incremental-parser/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 3 15:44:38 UTC 2017


    Date: Friday, November 3, 2017 @ 15:44:37
  Author: felixonmars
Revision: 265344

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-incremental-parser/repos/community-staging-i686/
  haskell-incremental-parser/repos/community-staging-i686/PKGBUILD
    (from rev 265343, haskell-incremental-parser/trunk/PKGBUILD)
  haskell-incremental-parser/repos/community-staging-x86_64/
  haskell-incremental-parser/repos/community-staging-x86_64/PKGBUILD
    (from rev 265343, haskell-incremental-parser/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   38 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: haskell-incremental-parser/repos/community-staging-i686/PKGBUILD (from rev 265343, haskell-incremental-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-11-03 15:44:37 UTC (rev 265344)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+
+_hkgname=incremental-parser
+pkgname=haskell-incremental-parser
+pkgver=0.2.5.2
+pkgrel=1
+pkgdesc="Generic parser library capable of providing partial results from partial input."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-monoid-subclasses')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1a0499e4043ea3ad8dadcff2675ca39eed38442d9d84a511b9b1245803a26ebd52aefdc9180edbd087e69898afa15e8bc707bb034f4161324dd0afbaada5d335')
+
+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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.txt"
+}

Copied: haskell-incremental-parser/repos/community-staging-x86_64/PKGBUILD (from rev 265343, haskell-incremental-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-03 15:44:37 UTC (rev 265344)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas Dziedzic <gostrc at gmail.com>
+
+_hkgname=incremental-parser
+pkgname=haskell-incremental-parser
+pkgver=0.2.5.2
+pkgrel=1
+pkgdesc="Generic parser library capable of providing partial results from partial input."
+url="https://hackage.haskell.org/package/${_hkgname}"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-monoid-subclasses')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('1a0499e4043ea3ad8dadcff2675ca39eed38442d9d84a511b9b1245803a26ebd52aefdc9180edbd087e69898afa15e8bc707bb034f4161324dd0afbaada5d335')
+
+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}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list