[arch-commits] Commit in haskell-hslogger/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Sep 10 21:36:32 UTC 2015
Date: Thursday, September 10, 2015 @ 23:36:32
Author: foutrelis
Revision: 139878
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 139877, haskell-hslogger/trunk/PKGBUILD)
haskell-hslogger/repos/community-staging-i686/haskell-hslogger.install
(from rev 139877, haskell-hslogger/trunk/haskell-hslogger.install)
haskell-hslogger/repos/community-staging-x86_64/
haskell-hslogger/repos/community-staging-x86_64/PKGBUILD
(from rev 139877, haskell-hslogger/trunk/PKGBUILD)
haskell-hslogger/repos/community-staging-x86_64/haskell-hslogger.install
(from rev 139877, 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 139877, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-10 21:36:32 UTC (rev 139878)
@@ -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.9
+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=('db8fd8ac6f8085317d66821ee27acd20')
+
+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 139877, haskell-hslogger/trunk/haskell-hslogger.install)
===================================================================
--- community-staging-i686/haskell-hslogger.install (rev 0)
+++ community-staging-i686/haskell-hslogger.install 2015-09-10 21:36:32 UTC (rev 139878)
@@ -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 139877, haskell-hslogger/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-10 21:36:32 UTC (rev 139878)
@@ -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.9
+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=('db8fd8ac6f8085317d66821ee27acd20')
+
+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 139877, haskell-hslogger/trunk/haskell-hslogger.install)
===================================================================
--- community-staging-x86_64/haskell-hslogger.install (rev 0)
+++ community-staging-x86_64/haskell-hslogger.install 2015-09-10 21:36:32 UTC (rev 139878)
@@ -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