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

Rémy Oudompheng remy at archlinux.org
Thu Oct 28 10:02:08 UTC 2010


    Date: Thursday, October 28, 2010 @ 06:02:08
  Author: remy
Revision: 97286

upgpkg: haskell-hashed-storage 0.5.3-1
Update to 0.5.3, add documentation, clean up install script.

Modified:
  haskell-hashed-storage/trunk/PKGBUILD
  haskell-hashed-storage/trunk/haskell-hashed-storage.install

--------------------------------+
 PKGBUILD                       |   26 ++++++++++++++++----------
 haskell-hashed-storage.install |    8 +++++---
 2 files changed, 21 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-28 09:48:04 UTC (rev 97285)
+++ PKGBUILD	2010-10-28 10:02:08 UTC (rev 97286)
@@ -1,30 +1,36 @@
 # Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
 # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-# Package generated by cabal2arch 0.5.3
+# As generated by cabal2arch 0.7.6
+_hkgname=hashed-storage
 pkgname=haskell-hashed-storage
-pkgrel=2
-pkgver=0.4.13
+pkgver=0.5.3
+pkgrel=1
 pkgdesc="Hashed file storage support code."
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hashed-storage"
+url="http://hackage.haskell.org/package/hashed-storage"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
-makedepends=()
-depends=('ghc=6.12.3' 'haskell-binary=0.5.0.2' 'haskell-mmap>=0.4' 'haskell-zlib'  'haskell-mtl' 'haskell-dataenc')
+depends=('ghc=6.12.3' 'haskell-binary=0.5.0.2' 'haskell-mmap>=0.5' 'haskell-zlib'  'haskell-mtl' 'haskell-dataenc')
 options=('strip')
 source=(http://hackage.haskell.org/packages/archive/hashed-storage/$pkgver/hashed-storage-$pkgver.tar.gz)
 install=haskell-hashed-storage.install
+md5sums=('84b9fc1b408aee53c5106d9737ca4929')
 
 build() {
     cd ${srcdir}/hashed-storage-$pkgver
-    runhaskell Setup configure --prefix=/usr -p --enable-split-objs --enable-shared
+    runhaskell Setup configure --prefix=/usr -p --enable-split-objs --enable-shared --docdir=/usr/share/doc/${pkgname}
     runhaskell Setup build
+    runhaskell Setup haddock
     runhaskell Setup register   --gen-script
     runhaskell Setup unregister --gen-script
+}
+
+package() {
+    cd ${srcdir}/${_hkgname}-${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/${_hkgname}
     runhaskell Setup copy --destdir=${pkgdir}
     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
 }
-
-
-md5sums=('894df630c076c18073baa2b5c998e105')

Modified: haskell-hashed-storage.install
===================================================================
--- haskell-hashed-storage.install	2010-10-28 09:48:04 UTC (rev 97285)
+++ haskell-hashed-storage.install	2010-10-28 10:02:08 UTC (rev 97286)
@@ -1,16 +1,18 @@
 HS_DIR=/usr/share/haskell/haskell-hashed-storage
 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
 }
-op=$1
-shift
-$op $*
+post_remove() {
+  (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}




More information about the arch-commits mailing list