[arch-commits] Commit in haskell-binary/trunk (PKGBUILD haskell-binary.install)
Rémy Oudompheng
remy at archlinux.org
Wed Oct 20 21:41:18 UTC 2010
Date: Wednesday, October 20, 2010 @ 17:41:18
Author: remy
Revision: 96406
Rebuild with documentation.
Modified:
haskell-binary/trunk/PKGBUILD
haskell-binary/trunk/haskell-binary.install
------------------------+
PKGBUILD | 17 +++++++++++++----
haskell-binary.install | 8 ++++++++
2 files changed, 21 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-10-20 21:40:34 UTC (rev 96405)
+++ PKGBUILD 2010-10-20 21:41:18 UTC (rev 96406)
@@ -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-binary
-pkgrel=3
pkgver=0.5.0.2
+pkgrel=4
pkgdesc="Binary serialisation for Haskell values using lazy ByteStrings"
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/binary"
+url="http://hackage.haskell.org/package/binary"
license=('custom:BSD3')
arch=('i686' 'x86_64')
depends=(ghc=6.12.3 sh)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/binary/$pkgver/binary-$pkgver.tar.gz)
install=haskell-binary.install
+md5sums=('6bf8f3d1441602c9ab09a75e3bd6e926')
build() {
cd ${srcdir}/binary-$pkgver
- runhaskell Setup configure --prefix=/usr -p --enable-split-objs --enable-shared
+ runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -p --enable-split-objs --enable-shared
runhaskell Setup build
+ runhaskell Setup haddock
runhaskell Setup register --gen-script
runhaskell Setup unregister --gen-script
+}
+
+package() {
+ cd ${srcdir}/binary-0.5.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/binary
runhaskell Setup copy --destdir=${pkgdir}
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
}
-md5sums=('6bf8f3d1441602c9ab09a75e3bd6e926')
Modified: haskell-binary.install
===================================================================
--- haskell-binary.install 2010-10-20 21:40:34 UTC (rev 96405)
+++ haskell-binary.install 2010-10-20 21:41:18 UTC (rev 96406)
@@ -1,13 +1,21 @@
HS_DIR=/usr/share/haskell/haskell-binary
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