summaryrefslogtreecommitdiff
path: root/community/haskell-binary
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-05 00:01:22 +0000
committerroot <root@rshg054.dnsready.net>2012-03-05 00:01:22 +0000
commit11711de1942a141f28faef695c4c78c8357fbf23 (patch)
tree363a8b5d445b8eb1dcee4263b5f06d2fe307678f /community/haskell-binary
parentf0fa42126da9e3eec6b98388b35c67929fa20dae (diff)
Mon Mar 5 00:01:22 UTC 2012
Diffstat (limited to 'community/haskell-binary')
-rw-r--r--community/haskell-binary/PKGBUILD10
-rw-r--r--community/haskell-binary/haskell-binary.install24
2 files changed, 21 insertions, 13 deletions
diff --git a/community/haskell-binary/PKGBUILD b/community/haskell-binary/PKGBUILD
index ae5bcab42..f3651c935 100644
--- a/community/haskell-binary/PKGBUILD
+++ b/community/haskell-binary/PKGBUILD
@@ -1,18 +1,20 @@
+# $Id: PKGBUILD 67046 2012-03-03 16:09:33Z tdziedzic $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
+
pkgname=haskell-binary
-pkgver=0.5.0.2
-pkgrel=8
+pkgver=0.5.1.0
+pkgrel=1
pkgdesc="Binary serialisation for Haskell values using lazy ByteStrings"
url="http://hackage.haskell.org/package/binary"
license=('custom:BSD3')
arch=('x86_64' 'i686')
-depends=(ghc=7.0.3-2 sh)
+depends=(ghc=7.4.1 sh)
options=('strip')
source=("http://hackage.haskell.org/packages/archive/binary/$pkgver/binary-$pkgver.tar.gz")
install=haskell-binary.install
-md5sums=('6bf8f3d1441602c9ab09a75e3bd6e926')
+sha256sums=('2ad477b47e9158d61517689f5f0c7b0240ff891059418d6758879020800351a3')
build() {
cd "$srcdir/binary-$pkgver"
diff --git a/community/haskell-binary/haskell-binary.install b/community/haskell-binary/haskell-binary.install
index 0084ebef8..844b8a67c 100644
--- a/community/haskell-binary/haskell-binary.install
+++ b/community/haskell-binary/haskell-binary.install
@@ -1,18 +1,24 @@
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_remove() {
+ (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+
post_upgrade() {
${HS_DIR}/register.sh
- (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+ post_remove
}
-pre_remove() {
- ${HS_DIR}/unregister.sh
+
+post_install() {
+ post_upgrade
}
-post_remove() {
- (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+
+pre_remove() {
+ pre_upgrade
}
+
+# vim:set ts=2 sw=2 et: