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

Felix Yan felixonmars at archlinux.org
Tue Aug 15 04:27:13 UTC 2017


    Date: Tuesday, August 15, 2017 @ 04:27:13
  Author: felixonmars
Revision: 250486

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 250485, haskell-bytestring-show/trunk/PKGBUILD)
  haskell-bytestring-show/repos/community-staging-x86_64/
  haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD
    (from rev 250485, haskell-bytestring-show/trunk/PKGBUILD)

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

Copied: haskell-bytestring-show/repos/community-staging-i686/PKGBUILD (from rev 250485, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-15 04:27:13 UTC (rev 250486)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=10
+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-libs')
+makedepends=('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}" \
+        --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}/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"
+    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 250485, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-15 04:27:13 UTC (rev 250486)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=10
+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-libs')
+makedepends=('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}" \
+        --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}/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"
+    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