[arch-commits] Commit in haskell-parsec/trunk (PKGBUILD haskell-parsec.install)
Rémy Oudompheng
remy at archlinux.org
Mon Oct 18 20:44:59 UTC 2010
Date: Monday, October 18, 2010 @ 16:44:58
Author: remy
Revision: 95382
upgpkg: haskell-parsec 2.1.0.1-4
Rebuild to add Haddock documentation.
Modified:
haskell-parsec/trunk/PKGBUILD
haskell-parsec/trunk/haskell-parsec.install
------------------------+
PKGBUILD | 20 ++++++++++++++------
haskell-parsec.install | 11 +++++++++--
2 files changed, 23 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-10-18 20:25:33 UTC (rev 95381)
+++ PKGBUILD 2010-10-18 20:44:58 UTC (rev 95382)
@@ -1,27 +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-parsec
pkgver=2.1.0.1
-pkgrel=3
+pkgrel=4
pkgdesc="Monadic parser combinators"
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/parsec"
+url="http://hackage.haskell.org/package/parsec"
license=('custom:BSD3')
arch=('i686' 'x86_64')
-depends=(ghc=6.12.3 sh 'haskell-mtl')
+depends=(ghc=6.12.3 sh)
options=('strip' 'force')
source=(http://hackage.haskell.org/packages/archive/parsec/$pkgver/parsec-$pkgver.tar.gz)
install=haskell-parsec.install
+md5sums=('557d935019ec4d966f2103fdf1a8c559')
build() {
cd $srcdir/parsec-$pkgver
- runhaskell Setup configure -p --enable-shared --enable-split-objs --prefix=/usr
+ runhaskell Setup configure -p --enable-shared --enable-split-objs --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/parsec-$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/parsec
runhaskell Setup copy --destdir=$pkgdir
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
}
-
-md5sums=('557d935019ec4d966f2103fdf1a8c559')
Modified: haskell-parsec.install
===================================================================
--- haskell-parsec.install 2010-10-18 20:25:33 UTC (rev 95381)
+++ haskell-parsec.install 2010-10-18 20:44:58 UTC (rev 95382)
@@ -1,14 +1,21 @@
HS_DIR=/usr/share/haskell/haskell-parsec
post_install() {
${HS_DIR}/register.sh
+ (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
pre_upgrade() {
- ${HS_DIR}/unregister.sh &> /dev/null
- exit 0
+ ${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