[arch-commits] Commit in haskell-haskell-src/trunk (2 files)
Rémy Oudompheng
remy at archlinux.org
Mon Dec 6 16:37:18 UTC 2010
Date: Monday, December 6, 2010 @ 11:37:18
Author: remy
Revision: 102196
upgpkg: haskell-haskell-src 1.0.1.3-4
Rebuild with documentation.
Modified:
haskell-haskell-src/trunk/PKGBUILD
haskell-haskell-src/trunk/haskell-haskell-src.install
-----------------------------+
PKGBUILD | 21 ++++++++++++++++-----
haskell-haskell-src.install | 8 ++++++--
2 files changed, 22 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-12-06 16:21:08 UTC (rev 102195)
+++ PKGBUILD 2010-12-06 16:37:18 UTC (rev 102196)
@@ -1,10 +1,11 @@
# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+_hkgname=haskell-src
pkgname=haskell-haskell-src
pkgver=1.0.1.3
-pkgrel=3
+pkgrel=4
pkgdesc="Facilities for manipulating Haskell source code: an abstract syntax, lexer, parser and pretty-printer."
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src"
+url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=(happy)
@@ -12,16 +13,26 @@
options=('strip')
source=(http://hackage.haskell.org/packages/archive/haskell-src/$pkgver/haskell-src-$pkgver.tar.gz)
install=${pkgname}.install
+md5sums=('27ec8f55eca844852815f916935f192d')
build() {
- cd ${srcdir}/haskell-src-$pkgver
- runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr
+ cd ${srcdir}/${_hkgname}-${pkgver}
+ runhaskell Setup configure -O -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
+ sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+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=('27ec8f55eca844852815f916935f192d')
+
Modified: haskell-haskell-src.install
===================================================================
--- haskell-haskell-src.install 2010-12-06 16:21:08 UTC (rev 102195)
+++ haskell-haskell-src.install 2010-12-06 16:37:18 UTC (rev 102196)
@@ -1,14 +1,18 @@
HS_DIR=usr/share/haskell/haskell-haskell-src
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)
+}
More information about the arch-commits
mailing list