[arch-commits] Commit in (5 files)
Vesa Kaihlavirta
vesa at archlinux.org
Sun Dec 27 14:49:44 UTC 2009
Date: Sunday, December 27, 2009 @ 09:49:44
Author: vesa
Revision: 61885
add haskell-regex-posix
Added:
haskell-regex-posix/
haskell-regex-posix/repos/
haskell-regex-posix/trunk/
haskell-regex-posix/trunk/PKGBUILD
haskell-regex-posix/trunk/haskell-regex-posix.install
-----------------------------+
PKGBUILD | 25 +++++++++++++++++++++++++
haskell-regex-posix.install | 13 +++++++++++++
2 files changed, 38 insertions(+)
Added: haskell-regex-posix/trunk/PKGBUILD
===================================================================
--- haskell-regex-posix/trunk/PKGBUILD (rev 0)
+++ haskell-regex-posix/trunk/PKGBUILD 2009-12-27 14:49:44 UTC (rev 61885)
@@ -0,0 +1,25 @@
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+pkgname=haskell-regex-posix
+pkgrel=1
+pkgver=0.94.1
+pkgdesc="The posix regex backend for regex-base"
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-posix"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=(ghc=6.12.1 sh)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/regex-posix/$pkgver/regex-posix-$pkgver.tar.gz)
+install=haskell-regex-posix.install
+
+build() {
+ cd $srcdir/regex-posix-$pkgver
+ runhaskell Setup configure -p --enable-shared --enable-split-objs --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
+}
Added: haskell-regex-posix/trunk/haskell-regex-posix.install
===================================================================
--- haskell-regex-posix/trunk/haskell-regex-posix.install (rev 0)
+++ haskell-regex-posix/trunk/haskell-regex-posix.install 2009-12-27 14:49:44 UTC (rev 61885)
@@ -0,0 +1,13 @@
+HS_DIR=/usr/share/haskell/haskell-regex-posix
+post_install() {
+ ${HS_DIR}/register.sh
+}
+pre_upgrade() {
+ ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+ ${HS_DIR}/register.sh
+}
+pre_remove() {
+ ${HS_DIR}/unregister.sh
+}
More information about the arch-commits
mailing list