[arch-commits] Commit in haskell-regex-compat/trunk (2 files)
Rémy Oudompheng
remy at archlinux.org
Sat Nov 27 09:14:51 UTC 2010
Date: Saturday, November 27, 2010 @ 04:14:51
Author: remy
Revision: 100987
upgpkg: haskell-regex-compat 0.93.1-2
Rebuild for ghc-7.0.1, add documentation
Modified:
haskell-regex-compat/trunk/PKGBUILD
haskell-regex-compat/trunk/haskell-regex-compat.install
------------------------------+
PKGBUILD | 20 +++++++++++++-------
haskell-regex-compat.install | 5 +++++
2 files changed, 18 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-11-27 09:07:09 UTC (rev 100986)
+++ PKGBUILD 2010-11-27 09:14:51 UTC (rev 100987)
@@ -1,30 +1,36 @@
# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+_hkgname=regex-compat
pkgname=haskell-regex-compat
-pkgrel=1
pkgver=0.93.1
+pkgrel=2
pkgdesc="Replaces and enhances Text.Regex"
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-compat"
+url="http://hackage.haskell.org/package/regex-compat"
license=('custom:BSD3')
arch=('i686' 'x86_64')
-depends=(ghc=6.12.3 sh 'haskell-regex-base' 'haskell-regex-posix')
+depends=(ghc=7.0.1 sh 'haskell-regex-base' 'haskell-regex-posix')
options=('strip')
source=(http://hackage.haskell.org/packages/archive/regex-compat/$pkgver/regex-compat-$pkgver.tar.gz)
install=haskell-regex-compat.install
+md5sums=('d6becec95ea8098cab663116fdce60a5')
build() {
- cd ${srcdir}/regex-compat-$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}/regex-compat-$pkgver
+ 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=('d6becec95ea8098cab663116fdce60a5')
Modified: haskell-regex-compat.install
===================================================================
--- haskell-regex-compat.install 2010-11-27 09:07:09 UTC (rev 100986)
+++ haskell-regex-compat.install 2010-11-27 09:14:51 UTC (rev 100987)
@@ -1,13 +1,18 @@
HS_DIR=usr/share/haskell/haskell-regex-compat
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)
+}
More information about the arch-commits
mailing list