[arch-commits] Commit in (5 files)

Vesa Kaihlavirta vesa at archlinux.org
Wed Aug 18 03:04:04 EDT 2010


    Date: Wednesday, August 18, 2010 @ 03:04:04
  Author: vesa
Revision: 87747

haskell-http from community (part of hp)

Added:
  haskell-http/
  haskell-http/repos/
  haskell-http/trunk/
  haskell-http/trunk/PKGBUILD
  haskell-http/trunk/haskell-http.install

----------------------+
 PKGBUILD             |   28 ++++++++++++++++++++++++++++
 haskell-http.install |   14 ++++++++++++++
 2 files changed, 42 insertions(+)

Added: haskell-http/trunk/PKGBUILD
===================================================================
--- haskell-http/trunk/PKGBUILD	                        (rev 0)
+++ haskell-http/trunk/PKGBUILD	2010-08-18 07:04:04 UTC (rev 87747)
@@ -0,0 +1,28 @@
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package originally generated by cabal2arch 0.4.2
+pkgname=haskell-http
+pkgrel=5
+pkgver=4000.0.9
+pkgdesc="A library for client-side HTTP"
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=('ghc=6.12.1' sh haskell-network=2.2.1.7 haskell-parsec=2.1.0.1 haskell-array haskell-bytestring haskell-mtl haskell-old-time)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/HTTP/$pkgver/HTTP-$pkgver.tar.gz)
+install=haskell-http.install
+
+build() {
+    cd $startdir/src/HTTP-$pkgver
+    runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr
+    runhaskell Setup build
+    runhaskell Setup haddock
+    runhaskell Setup register   --gen-script
+    runhaskell Setup unregister --gen-script
+    install -D -m744 register.sh   $startdir/pkg/usr/share/haskell/$pkgname/register.sh
+    install    -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh
+    runhaskell Setup copy --destdir=$startdir/pkg
+    install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums=('bbd005935537ed8883bfefb624e8bf3c')


Property changes on: haskell-http/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: haskell-http/trunk/haskell-http.install
===================================================================
--- haskell-http/trunk/haskell-http.install	                        (rev 0)
+++ haskell-http/trunk/haskell-http.install	2010-08-18 07:04:04 UTC (rev 87747)
@@ -0,0 +1,14 @@
+HS_DIR=/usr/share/haskell/haskell-http
+post_install() {
+  ${HS_DIR}/register.sh
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh &> /dev/null
+  exit 0
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}



More information about the arch-commits mailing list