[arch-commits] Commit in haskell-bytestring-show/repos (4 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 16 14:56:11 UTC 2017


    Date: Friday, June 16, 2017 @ 14:56:10
  Author: felixonmars
Revision: 237672

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

Added:
  haskell-bytestring-show/repos/community-staging-i686/
  haskell-bytestring-show/repos/community-staging-i686/PKGBUILD
    (from rev 237671, haskell-bytestring-show/trunk/PKGBUILD)
  haskell-bytestring-show/repos/community-staging-x86_64/
  haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD
    (from rev 237671, haskell-bytestring-show/trunk/PKGBUILD)

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

Copied: haskell-bytestring-show/repos/community-staging-i686/PKGBUILD (from rev 237671, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-06-16 14:56:10 UTC (rev 237672)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=9
+pkgdesc="Efficient conversion of values into readable byte strings."
+url="https://hackage.haskell.org/package/bytestring-show"
+license=('BSD')
+arch=('i686' 'x86_64')
+depends=("ghc")
+source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz")
+sha256sums=('29242efd16951ebba888218c469a99ff25b19ab74ee1e0d7b4db09b8800a0812')
+
+build() {
+    cd "$srcdir"/bytestring-show-${pkgver}
+
+    # update outdated dependency
+    sed -e 's/build-depends: integer-gmp >= 0.2 && < 0.5/build-depends: integer-gmp >= 0.2 \&\& < 0.6/' \
+        -e 's/binary < 0.8/binary < 0.9/' \
+        -i bytestring-show.cabal
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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}/bytestring-show-${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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/bytestring-show"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD (from rev 237671, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-06-16 14:56:10 UTC (rev 237672)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=9
+pkgdesc="Efficient conversion of values into readable byte strings."
+url="https://hackage.haskell.org/package/bytestring-show"
+license=('BSD')
+arch=('i686' 'x86_64')
+depends=("ghc")
+source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz")
+sha256sums=('29242efd16951ebba888218c469a99ff25b19ab74ee1e0d7b4db09b8800a0812')
+
+build() {
+    cd "$srcdir"/bytestring-show-${pkgver}
+
+    # update outdated dependency
+    sed -e 's/build-depends: integer-gmp >= 0.2 && < 0.5/build-depends: integer-gmp >= 0.2 \&\& < 0.6/' \
+        -e 's/binary < 0.8/binary < 0.9/' \
+        -i bytestring-show.cabal
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock --hoogle --html
+    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}/bytestring-show-${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"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/bytestring-show"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}



More information about the arch-commits mailing list