[arch-commits] Commit in haskell-xhtml/trunk (PKGBUILD haskell-xhtml.install)

Rémy Oudompheng remy at archlinux.org
Fri Oct 22 11:04:20 UTC 2010


    Date: Friday, October 22, 2010 @ 07:04:19
  Author: remy
Revision: 96563

upgpkg: haskell-xhtml 3000.2.0.1-5
Rebuild for documentation.

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

-----------------------+
 PKGBUILD              |   14 ++++++++++----
 haskell-xhtml.install |    8 ++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-22 11:02:57 UTC (rev 96562)
+++ PKGBUILD	2010-10-22 11:04:19 UTC (rev 96563)
@@ -1,21 +1,25 @@
 # Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
 # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.7.6
+_hkgname=xhtml
 pkgname=haskell-xhtml
 pkgver=3000.2.0.1
-pkgrel=4
+pkgrel=5
 pkgdesc="Combinators for producing XHTML 1.0, including the Strict, Transitional and Frameset variants."
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xhtml"
+url="http://hackage.haskell.org/package/xhtml"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
 depends=(ghc=6.12.3 sh)
 options=('strip')
 source=(http://hackage.haskell.org/packages/archive/xhtml/$pkgver/xhtml-$pkgver.tar.gz)
 install=${pkgname}.install
+md5sums=('9e3e7d9c66618c5e29716f90e54363c9')
 
 build() {
     cd ${srcdir}/xhtml-$pkgver
-    runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr
+    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
 }
@@ -24,7 +28,9 @@
     cd ${srcdir}/xhtml-$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/xhtml
     runhaskell Setup copy --destdir=${pkgdir}
     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
 }
-md5sums=('9e3e7d9c66618c5e29716f90e54363c9')

Modified: haskell-xhtml.install
===================================================================
--- haskell-xhtml.install	2010-10-22 11:02:57 UTC (rev 96562)
+++ haskell-xhtml.install	2010-10-22 11:04:19 UTC (rev 96563)
@@ -1,6 +1,7 @@
 HS_DIR=/usr/share/haskell/haskell-xhtml
 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