[arch-commits] Commit in haskell-mtl/trunk (PKGBUILD haskell-mtl.install)
Rémy Oudompheng
remy at archlinux.org
Mon Oct 18 19:44:19 UTC 2010
Date: Monday, October 18, 2010 @ 15:44:18
Author: remy
Revision: 95372
upgpkg: haskell-mtl 1.1.0.2-5
Rebuild to add Haddock documentation.
Modified:
haskell-mtl/trunk/PKGBUILD
haskell-mtl/trunk/haskell-mtl.install
---------------------+
PKGBUILD | 17 +++++++++++++----
haskell-mtl.install | 8 ++++++++
2 files changed, 21 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-10-18 19:10:51 UTC (rev 95371)
+++ PKGBUILD 2010-10-18 19:44:18 UTC (rev 95372)
@@ -1,26 +1,35 @@
# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.7.5
pkgname=haskell-mtl
-pkgrel=4
pkgver=1.1.0.2
+pkgrel=5
pkgdesc="Monad transformer library"
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mtl"
+url="http://hackage.haskell.org/package/mtl"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/mtl/$pkgver/mtl-$pkgver.tar.gz)
install=haskell-mtl.install
+md5sums=('1e933bb7abb38b7bb423929ba37219db')
build() {
cd $srcdir/mtl-$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}/mtl-1.1.0.2
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/mtl
runhaskell Setup copy --destdir=$pkgdir
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
}
-md5sums=('1e933bb7abb38b7bb423929ba37219db')
Modified: haskell-mtl.install
===================================================================
--- haskell-mtl.install 2010-10-18 19:10:51 UTC (rev 95371)
+++ haskell-mtl.install 2010-10-18 19:44:18 UTC (rev 95372)
@@ -1,13 +1,21 @@
HS_DIR=/usr/share/haskell/haskell-mtl
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)
+}
+op=$1
+shift
+$op $*
More information about the arch-commits
mailing list