Date: Tuesday, December 22, 2009 @ 02:09:57
  Author: vesa
Revision: 61709

add haskell-regex-base

Added:
  haskell-regex-base/
  haskell-regex-base/repos/
  haskell-regex-base/trunk/
  haskell-regex-base/trunk/PKGBUILD
  haskell-regex-base/trunk/haskell-regex-base.install

----------------------------+
 PKGBUILD                   |   26 ++++++++++++++++++++++++++
 haskell-regex-base.install |   13 +++++++++++++
 2 files changed, 39 insertions(+)

Added: haskell-regex-base/trunk/PKGBUILD
===================================================================
--- haskell-regex-base/trunk/PKGBUILD                           (rev 0)
+++ haskell-regex-base/trunk/PKGBUILD   2009-12-22 07:09:57 UTC (rev 61709)
@@ -0,0 +1,26 @@
+# Maintainer: Vesa Kaihlavirta <v...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+pkgname=haskell-regex-base
+pkgrel=1
+pkgver=0.93.1
+pkgdesc="Interface API for regex-posix,pcre,parsec,tdfa,dfa"
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-base";
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=(ghc=6.12.1 sh)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/regex-base/$pkgver/regex-base-$pkgver.tar.gz)
+install=haskell-regex-base.install
+
+build() {
+    cd $srcdir/regex-base-$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   
$pkgdir/usr/share/haskell/$pkgname/register.sh
+    install    -m744 unregister.sh 
$pkgdir/usr/share/haskell/$pkgname/unregister.sh
+    runhaskell Setup copy --destdir=$pkgdir || return 1
+    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || 
return 1
+}
+md5sums=('194b940de71fc3f50780cff8569ba046')

Added: haskell-regex-base/trunk/haskell-regex-base.install
===================================================================
--- haskell-regex-base/trunk/haskell-regex-base.install                         
(rev 0)
+++ haskell-regex-base/trunk/haskell-regex-base.install 2009-12-22 07:09:57 UTC 
(rev 61709)
@@ -0,0 +1,13 @@
+HS_DIR=/usr/share/haskell/haskell-regex-base
+post_install() {
+  ${HS_DIR}/register.sh
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}

Reply via email to