[arch-commits] Commit in haskell-packedstring/trunk (2 files)

Rémy Oudompheng remy at archlinux.org
Thu Oct 21 22:47:24 UTC 2010


    Date: Thursday, October 21, 2010 @ 18:47:24
  Author: remy
Revision: 96506

GHC rebuild + enable documentation.

Modified:
  haskell-packedstring/trunk/PKGBUILD
  haskell-packedstring/trunk/haskell-packedstring.install

------------------------------+
 PKGBUILD                     |   25 +++++++++++++++----------
 haskell-packedstring.install |    8 ++++++++
 2 files changed, 23 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-21 22:47:05 UTC (rev 96505)
+++ PKGBUILD	2010-10-21 22:47:24 UTC (rev 96506)
@@ -1,30 +1,35 @@
-# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Maintainer: Rémy Oudompheng <remy at archlinux.org>
 # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.7.6
 pkgname=haskell-packedstring
 pkgver=0.1.0.1
-pkgrel=2
-pkgdesc="Packed Strings"
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/packedstring"
+pkgrel=3
+pkgdesc="(Deprecated) Packed Strings."
+url="http://hackage.haskell.org/package/packedstring"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
-depends=(ghc=6.12.1 sh)
+depends=(ghc=6.12.3 sh)
 options=('strip')
-source=(http://hackage.haskell.org/packages/archive/packedstring/$pkgver/packedstring-$pkgver.tar.gz)
+source=(http://hackage.haskell.org/packages/archive/packedstring/${pkgver}/packedstring-${pkgver}.tar.gz)
 install=${pkgname}.install
+md5sums=('ea0bdcb92f4c5bd78ac8bb7a654fcfb2')
 
 build() {
-    cd ${srcdir}/packedstring-$pkgver
-    runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr
+    cd ${srcdir}/packedstring-${pkgver}
+    runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr --docdir=/usr/share/doc/${pkgname}
     runhaskell Setup build
+    runhaskell Setup haddock
     runhaskell Setup register   --gen-script
     runhaskell Setup unregister --gen-script
 }
 
 package() {
-    cd ${srcdir}/packedstring-$pkgver
+    cd ${srcdir}/packedstring-${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/packedstring
     runhaskell Setup copy --destdir=${pkgdir}
     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
 }
-md5sums=('ea0bdcb92f4c5bd78ac8bb7a654fcfb2')

Modified: haskell-packedstring.install
===================================================================
--- haskell-packedstring.install	2010-10-21 22:47:05 UTC (rev 96505)
+++ haskell-packedstring.install	2010-10-21 22:47:24 UTC (rev 96506)
@@ -1,6 +1,7 @@
 HS_DIR=/usr/share/haskell/haskell-packedstring
 post_install() {
   ${HS_DIR}/register.sh
+  (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
 }
 pre_upgrade() {
   ${HS_DIR}/unregister.sh &> /dev/null
@@ -8,7 +9,14 @@
 }
 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)
+}
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list