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

Jelle van der Waa jelle at archlinux.org
Tue Mar 31 17:40:17 UTC 2015


    Date: Tuesday, March 31, 2015 @ 19:40:17
  Author: jelle
Revision: 130421

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

Added:
  haskell-hslogger/repos/community-staging-i686/
  haskell-hslogger/repos/community-staging-i686/PKGBUILD
    (from rev 130420, haskell-hslogger/trunk/PKGBUILD)
  haskell-hslogger/repos/community-staging-i686/haskell-hslogger.install
    (from rev 130420, haskell-hslogger/trunk/haskell-hslogger.install)
  haskell-hslogger/repos/community-staging-x86_64/
  haskell-hslogger/repos/community-staging-x86_64/PKGBUILD
    (from rev 130420, haskell-hslogger/trunk/PKGBUILD)
  haskell-hslogger/repos/community-staging-x86_64/haskell-hslogger.install
    (from rev 130420, haskell-hslogger/trunk/haskell-hslogger.install)

---------------------------------------------------+
 community-staging-i686/PKGBUILD                   |   38 ++++++++++++++++++++
 community-staging-i686/haskell-hslogger.install   |   18 +++++++++
 community-staging-x86_64/PKGBUILD                 |   38 ++++++++++++++++++++
 community-staging-x86_64/haskell-hslogger.install |   18 +++++++++
 4 files changed, 112 insertions(+)

Copied: haskell-hslogger/repos/community-staging-i686/PKGBUILD (from rev 130420, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-03-31 17:40:17 UTC (rev 130421)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-hslogger
+pkgver=1.2.8
+pkgrel=2
+pkgdesc="Versatile logging framework"
+url="http://hackage.haskell.org/package/hslogger"
+license=('LGPL')
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-mtl' 'haskell-network' 'haskell-old-locale')
+options=('staticlibs')
+install=${pkgname}.install
+source=("http://hackage.haskell.org/packages/archive/hslogger/${pkgver}/hslogger-${pkgver}.tar.gz")
+md5sums=('e5960e170f9809486ede60f8165bb770')
+
+build() {
+  cd ${srcdir}/hslogger-${pkgver}
+
+  runhaskell Setup configure -p --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O \
+	--enable-split-objs --enable-shared --libsubdir=\$compiler/site-local/\$pkgid \
+	--enable-library-profiling
+  runhaskell Setup build
+  runhaskell Setup haddock
+  runhaskell Setup register   --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+  cd ${srcdir}/hslogger-${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/hslogger
+  runhaskell Setup copy --destdir=${pkgdir}
+}

Copied: haskell-hslogger/repos/community-staging-i686/haskell-hslogger.install (from rev 130420, haskell-hslogger/trunk/haskell-hslogger.install)
===================================================================
--- community-staging-i686/haskell-hslogger.install	                        (rev 0)
+++ community-staging-i686/haskell-hslogger.install	2015-03-31 17:40:17 UTC (rev 130421)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-hslogger
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}

Copied: haskell-hslogger/repos/community-staging-x86_64/PKGBUILD (from rev 130420, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-03-31 17:40:17 UTC (rev 130421)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-hslogger
+pkgver=1.2.8
+pkgrel=2
+pkgdesc="Versatile logging framework"
+url="http://hackage.haskell.org/package/hslogger"
+license=('LGPL')
+arch=('i686' 'x86_64')
+depends=('ghc' 'haskell-mtl' 'haskell-network' 'haskell-old-locale')
+options=('staticlibs')
+install=${pkgname}.install
+source=("http://hackage.haskell.org/packages/archive/hslogger/${pkgver}/hslogger-${pkgver}.tar.gz")
+md5sums=('e5960e170f9809486ede60f8165bb770')
+
+build() {
+  cd ${srcdir}/hslogger-${pkgver}
+
+  runhaskell Setup configure -p --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O \
+	--enable-split-objs --enable-shared --libsubdir=\$compiler/site-local/\$pkgid \
+	--enable-library-profiling
+  runhaskell Setup build
+  runhaskell Setup haddock
+  runhaskell Setup register   --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+  cd ${srcdir}/hslogger-${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/hslogger
+  runhaskell Setup copy --destdir=${pkgdir}
+}

Copied: haskell-hslogger/repos/community-staging-x86_64/haskell-hslogger.install (from rev 130420, haskell-hslogger/trunk/haskell-hslogger.install)
===================================================================
--- community-staging-x86_64/haskell-hslogger.install	                        (rev 0)
+++ community-staging-x86_64/haskell-hslogger.install	2015-03-31 17:40:17 UTC (rev 130421)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-hslogger
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}



More information about the arch-commits mailing list