[arch-commits] Commit in haskell-haddock-api/repos (6 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Sep 10 21:25:30 UTC 2015


    Date: Thursday, September 10, 2015 @ 23:25:30
  Author: foutrelis
Revision: 139864

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

Added:
  haskell-haddock-api/repos/community-staging-i686/
  haskell-haddock-api/repos/community-staging-i686/PKGBUILD
    (from rev 139863, haskell-haddock-api/trunk/PKGBUILD)
  haskell-haddock-api/repos/community-staging-i686/haskell-haddock-api.install
    (from rev 139863, haskell-haddock-api/trunk/haskell-haddock-api.install)
  haskell-haddock-api/repos/community-staging-x86_64/
  haskell-haddock-api/repos/community-staging-x86_64/PKGBUILD
    (from rev 139863, haskell-haddock-api/trunk/PKGBUILD)
  haskell-haddock-api/repos/community-staging-x86_64/haskell-haddock-api.install
    (from rev 139863, haskell-haddock-api/trunk/haskell-haddock-api.install)

------------------------------------------------------+
 community-staging-i686/PKGBUILD                      |   43 +++++++++++++++++
 community-staging-i686/haskell-haddock-api.install   |   20 +++++++
 community-staging-x86_64/PKGBUILD                    |   43 +++++++++++++++++
 community-staging-x86_64/haskell-haddock-api.install |   20 +++++++
 4 files changed, 126 insertions(+)

Copied: haskell-haddock-api/repos/community-staging-i686/PKGBUILD (from rev 139863, haskell-haddock-api/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 21:25:30 UTC (rev 139864)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=haskell-haddock-api
+pkgver=2.16.0
+pkgrel=2
+pkgdesc="A documentation-generation tool for Haskell libraries"
+url="http://www.haskell.org/haddock/"
+license=("BSD3")
+arch=('i686' 'x86_64')
+makedepends=()
+depends=("ghc=7.10.1"
+         "haskell-ghc-paths"
+         "haskell-haddock-library")
+options=('strip' 'staticlibs')
+source=("https://hackage.haskell.org/package/haddock-api-${pkgver}/haddock-api-${pkgver}.tar.gz")
+install="${pkgname}.install"
+sha256sums=('1286dcb12bf3b4d657df64dc595e8ce5e414e10260cbcb3abadde4e50c176442')
+
+build() {
+    cd "${srcdir}/haddock-api-${pkgver}"
+
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
+    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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd "${srcdir}/haddock-api-${pkgver}"
+
+    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
+    install    -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/haddock-api"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Copied: haskell-haddock-api/repos/community-staging-i686/haskell-haddock-api.install (from rev 139863, haskell-haddock-api/trunk/haskell-haddock-api.install)
===================================================================
--- community-staging-i686/haskell-haddock-api.install	                        (rev 0)
+++ community-staging-i686/haskell-haddock-api.install	2015-09-10 21:25:30 UTC (rev 139864)
@@ -0,0 +1,20 @@
+# custom variables
+pkgname=haskell-haddock-api
+HS_DIR=usr/share/haskell/${pkgname}
+
+# functions
+post_install() {
+    ${HS_DIR}/register.sh
+}
+
+pre_upgrade() {
+    ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+    ${HS_DIR}/register.sh
+}
+
+pre_remove() {
+    ${HS_DIR}/unregister.sh
+}

Copied: haskell-haddock-api/repos/community-staging-x86_64/PKGBUILD (from rev 139863, haskell-haddock-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 21:25:30 UTC (rev 139864)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+
+pkgname=haskell-haddock-api
+pkgver=2.16.0
+pkgrel=2
+pkgdesc="A documentation-generation tool for Haskell libraries"
+url="http://www.haskell.org/haddock/"
+license=("BSD3")
+arch=('i686' 'x86_64')
+makedepends=()
+depends=("ghc=7.10.1"
+         "haskell-ghc-paths"
+         "haskell-haddock-library")
+options=('strip' 'staticlibs')
+source=("https://hackage.haskell.org/package/haddock-api-${pkgver}/haddock-api-${pkgver}.tar.gz")
+install="${pkgname}.install"
+sha256sums=('1286dcb12bf3b4d657df64dc595e8ce5e414e10260cbcb3abadde4e50c176442')
+
+build() {
+    cd "${srcdir}/haddock-api-${pkgver}"
+
+    runhaskell Setup configure -O --enable-library-profiling --enable-shared \
+        --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
+        --libsubdir=\$compiler/site-local/\$pkgid
+    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.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd "${srcdir}/haddock-api-${pkgver}"
+
+    install -D -m744 register.sh   "${pkgdir}/usr/share/haskell/${pkgname}/register.sh"
+    install    -m744 unregister.sh "${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh"
+    install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
+    ln -s "/usr/share/doc/${pkgname}/html" "${pkgdir}/usr/share/doc/ghc/html/libraries/haddock-api"
+    runhaskell Setup copy --destdir="${pkgdir}"
+    install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
+}

Copied: haskell-haddock-api/repos/community-staging-x86_64/haskell-haddock-api.install (from rev 139863, haskell-haddock-api/trunk/haskell-haddock-api.install)
===================================================================
--- community-staging-x86_64/haskell-haddock-api.install	                        (rev 0)
+++ community-staging-x86_64/haskell-haddock-api.install	2015-09-10 21:25:30 UTC (rev 139864)
@@ -0,0 +1,20 @@
+# custom variables
+pkgname=haskell-haddock-api
+HS_DIR=usr/share/haskell/${pkgname}
+
+# functions
+post_install() {
+    ${HS_DIR}/register.sh
+}
+
+pre_upgrade() {
+    ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+    ${HS_DIR}/register.sh
+}
+
+pre_remove() {
+    ${HS_DIR}/unregister.sh
+}



More information about the arch-commits mailing list