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

Felix Yan felixonmars at archlinux.org
Wed Aug 30 23:09:21 UTC 2017


    Date: Wednesday, August 30, 2017 @ 23:09:21
  Author: felixonmars
Revision: 255005

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 255004, hlint/trunk/PKGBUILD)
  hlint/repos/community-staging-x86_64/
  hlint/repos/community-staging-x86_64/PKGBUILD
    (from rev 255004, hlint/trunk/PKGBUILD)

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

Copied: hlint/repos/community-staging-i686/PKGBUILD (from rev 255004, hlint/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-30 23:09:21 UTC (rev 255005)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hlint
+pkgver=2.0.9
+pkgrel=18
+pkgdesc="Source code suggestions"
+url="http://community.haskell.org/~ndm/hlint/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "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")
+conflicts=('haskell-hlint')
+replaces=('haskell-hlint')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('f2082eec31b73c2c1b1f7ce246b15178d00c8e6f9840619fc11c545cde4120713c274236c85993e217c17886cd824276cf2738c32aeaf67af9c8b4c147c09cf7')
+
+build() {
+    cd "${srcdir}/${pkgname}-${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 \
+            -fgpl -fthreaded
+    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}/${pkgname}-${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}/COPYING.BSD3"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}

Copied: hlint/repos/community-staging-x86_64/PKGBUILD (from rev 255004, hlint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-30 23:09:21 UTC (rev 255005)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=hlint
+pkgver=2.0.9
+pkgrel=18
+pkgdesc="Source code suggestions"
+url="http://community.haskell.org/~ndm/hlint/"
+license=("custom:BSD3")
+arch=('i686' 'x86_64')
+depends=('ghc-libs' "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")
+conflicts=('haskell-hlint')
+replaces=('haskell-hlint')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('f2082eec31b73c2c1b1f7ce246b15178d00c8e6f9840619fc11c545cde4120713c274236c85993e217c17886cd824276cf2738c32aeaf67af9c8b4c147c09cf7')
+
+build() {
+    cd "${srcdir}/${pkgname}-${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 \
+            -fgpl -fthreaded
+    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}/${pkgname}-${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}/COPYING.BSD3"
+
+    # Remove static libs
+    find "$pkgdir"/usr/lib -name "*.a" -delete
+}



More information about the arch-commits mailing list