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

Felix Yan felixonmars at archlinux.org
Fri May 18 04:53:30 UTC 2018


    Date: Friday, May 18, 2018 @ 04:53:29
  Author: felixonmars
Revision: 324123

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: haskell-bytestring-show/repos/community-staging-x86_64/PKGBUILD (from rev 324122, haskell-bytestring-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-05-18 04:53:29 UTC (rev 324123)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=haskell-bytestring-show
+pkgver=0.3.5.6
+pkgrel=13
+pkgdesc="Efficient conversion of values into readable byte strings."
+url="https://hackage.haskell.org/package/bytestring-show"
+license=('BSD')
+arch=('x86_64')
+depends=('ghc-libs')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/bytestring-show/${pkgver}/bytestring-show-${pkgver}.tar.gz")
+sha512sums=('f59a041e30ec3b3eb9f971968606685ba5968dafc44d92ed50c9f7f124b891f48fc6612fdfc1a57f702e76e41f70c647e81c1919ab7fee194db9d97ddd73dd10')
+
+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 --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}/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"
+}



More information about the arch-commits mailing list