[arch-commits] Commit in hlint/repos (4 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 3 14:15:21 UTC 2017


    Date: Saturday, June 3, 2017 @ 14:15:20
  Author: felixonmars
Revision: 233767

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

Added:
  hlint/repos/community-staging-i686/
  hlint/repos/community-staging-i686/PKGBUILD
    (from rev 233766, hlint/trunk/PKGBUILD)
  hlint/repos/community-staging-x86_64/
  hlint/repos/community-staging-x86_64/PKGBUILD
    (from rev 233766, hlint/trunk/PKGBUILD)

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

Copied: hlint/repos/community-staging-i686/PKGBUILD (from rev 233766, hlint/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-06-03 14:15:20 UTC (rev 233767)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=hlint
+pkgname=(hlint haskell-hlint)
+pkgver=2.0.8
+pkgrel=3
+pkgdesc="Source code suggestions"
+url="http://community.haskell.org/~ndm/hlint/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs" "haskell-extra"
+             "haskell-src-exts" "haskell-hscolour" "haskell-uniplate" "haskell-refact"
+             "haskell-text" "haskell-unordered-containers" "haskell-vector" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha512sums=('c8d1db8b11afe778fb8ae193f595e784931ee40ba348e9b892f162ef6376dc43e6794e6a7ed33294b1db4653de6d0fb4e99f6368b3c8cfea1bc829503a685b45')
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fgpl -fthreaded
+    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_hlint() {
+    depends=('gmp' 'libffi')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share/doc}
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_haskell-hlint() {
+    pkgdesc="Source code suggestions (docs and libraries)"
+    depends=("${makedepends[@]}" 'hlint')
+
+    cd "${srcdir}/${pkgbase}-${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/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3"
+    rm -r "$pkgdir"/usr/{bin,share/${pkgbase}}
+}

Copied: hlint/repos/community-staging-x86_64/PKGBUILD (from rev 233766, hlint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-06-03 14:15:20 UTC (rev 233767)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgbase=hlint
+pkgname=(hlint haskell-hlint)
+pkgver=2.0.8
+pkgrel=3
+pkgdesc="Source code suggestions"
+url="http://community.haskell.org/~ndm/hlint/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+makedepends=("ghc=8.0.1" "haskell-ansi-terminal" "haskell-cmdargs" "haskell-cpphs" "haskell-extra"
+             "haskell-src-exts" "haskell-hscolour" "haskell-uniplate" "haskell-refact"
+             "haskell-text" "haskell-unordered-containers" "haskell-vector" "haskell-yaml")
+source=("https://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz")
+sha512sums=('c8d1db8b11afe778fb8ae193f595e784931ee40ba348e9b892f162ef6376dc43e6794e6a7ed33294b1db4653de6d0fb4e99f6368b3c8cfea1bc829503a685b45')
+
+build() {
+    cd "${srcdir}/${pkgbase}-${pkgver}"    
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" --datasubdir="$pkgbase" \
+        --libsubdir=\$compiler/site-local/\$pkgid \
+            -fgpl -fthreaded
+    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_hlint() {
+    depends=('gmp' 'libffi')
+
+    cd "${srcdir}/${pkgbase}-${pkgver}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -r "$pkgdir"/usr/{lib,share/doc}
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_haskell-hlint() {
+    pkgdesc="Source code suggestions (docs and libraries)"
+    depends=("${makedepends[@]}" 'hlint')
+
+    cd "${srcdir}/${pkgbase}-${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/${pkgbase}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/${pkgbase}"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/COPYING.BSD3"
+    rm -r "$pkgdir"/usr/{bin,share/${pkgbase}}
+}



More information about the arch-commits mailing list