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

Felix Yan felixonmars at archlinux.org
Tue Aug 15 08:54:39 UTC 2017


    Date: Tuesday, August 15, 2017 @ 08:54:39
  Author: felixonmars
Revision: 250744

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

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

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

Copied: haskell-pretty-show/repos/community-staging-i686/PKGBUILD (from rev 250743, haskell-pretty-show/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-15 08:54:39 UTC (rev 250744)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=pretty-show
+pkgname=haskell-pretty-show
+pkgver=1.6.13
+pkgrel=3
+pkgdesc='Tools for working with derived `Show` instances and generic inspection of values.'
+url="http://wiki.github.com/yav/pretty-show"
+license=('MIT')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-lexer')
+makedepends=('ghc' 'happy')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7917e5b34e3eefdff3b72d37cedd9f692be1176febe1087e713be9e6c00baf5ffbdd3a7ecca685936ddf73a6765f8145d94ac5a9c026fc8de58794e0a06a184e')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: haskell-pretty-show/repos/community-staging-x86_64/PKGBUILD (from rev 250743, haskell-pretty-show/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-15 08:54:39 UTC (rev 250744)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=pretty-show
+pkgname=haskell-pretty-show
+pkgver=1.6.13
+pkgrel=3
+pkgdesc='Tools for working with derived `Show` instances and generic inspection of values.'
+url="http://wiki.github.com/yav/pretty-show"
+license=('MIT')
+arch=('i686' 'x86_64')
+depends=('ghc-libs' 'haskell-lexer')
+makedepends=('ghc' 'happy')
+source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
+sha512sums=('7917e5b34e3eefdff3b72d37cedd9f692be1176febe1087e713be9e6c00baf5ffbdd3a7ecca685936ddf73a6765f8145d94ac5a9c026fc8de58794e0a06a184e')
+
+build() {
+    cd "${srcdir}/${_hkgname}-${pkgver}"
+
+    runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$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"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}



More information about the arch-commits mailing list