[arch-commits] Commit in (5 files)

Vesa Kaihlavirta vesa at archlinux.org
Tue Jul 28 06:22:48 UTC 2009


    Date: Tuesday, July 28, 2009 @ 02:22:48
  Author: vesa
Revision: 47828

add haskell-haskeline (dep to darcs-2.3.0)

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

---------------------------+
 PKGBUILD                  |   27 +++++++++++++++++++++++++++
 haskell-haskeline.install |   16 ++++++++++++++++
 2 files changed, 43 insertions(+)

Added: haskell-haskeline/trunk/PKGBUILD
===================================================================
--- haskell-haskeline/trunk/PKGBUILD	                        (rev 0)
+++ haskell-haskeline/trunk/PKGBUILD	2009-07-28 06:22:48 UTC (rev 47828)
@@ -0,0 +1,27 @@
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.5.2
+pkgname=haskell-haskeline
+pkgrel=1
+pkgver=0.6.1.5
+pkgdesc="A command-line interface for user input, written in Haskell."
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskeline"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+makedepends=('ghc' 'haskell-cabal' 'haskell-extensible-exceptions' 'haskell-terminfo' 'haskell-utf8-string')
+depends=('ghc' 'haskell-cabal' 'haskell-extensible-exceptions' 'haskell-terminfo' 'haskell-utf8-string' sh)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/haskeline/$pkgver/haskeline-$pkgver.tar.gz)
+install=haskell-haskeline.install
+md5sums=('0f1730bb24c898cd176aa1039f50802e')
+build() {
+    cd $startdir/src/haskeline-$pkgver
+    runhaskell Setup configure --prefix=/usr || return 1
+    runhaskell Setup build                   || return 1
+    runhaskell Setup register   --gen-script || return 1
+    runhaskell Setup unregister --gen-script || return 1
+    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 || return 1
+    install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
+}

Added: haskell-haskeline/trunk/haskell-haskeline.install
===================================================================
--- haskell-haskeline/trunk/haskell-haskeline.install	                        (rev 0)
+++ haskell-haskeline/trunk/haskell-haskeline.install	2009-07-28 06:22:48 UTC (rev 47828)
@@ -0,0 +1,16 @@
+HS_DIR=/usr/share/haskell/haskell-haskeline
+post_install() {
+  ${HS_DIR}/register.sh
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list