[arch-commits] Commit in (5 files)
Vesa Kaihlavirta
vesa at archlinux.org
Sun Dec 27 13:51:04 UTC 2009
Date: Sunday, December 27, 2009 @ 08:51:04
Author: vesa
Revision: 61868
add haskell-regex-compat
Added:
haskell-regex-compat/
haskell-regex-compat/repos/
haskell-regex-compat/trunk/
haskell-regex-compat/trunk/PKGBUILD
haskell-regex-compat/trunk/haskell-regex-compat.install
------------------------------+
PKGBUILD | 26 ++++++++++++++++++++++++++
haskell-regex-compat.install | 13 +++++++++++++
2 files changed, 39 insertions(+)
Added: haskell-regex-compat/trunk/PKGBUILD
===================================================================
--- haskell-regex-compat/trunk/PKGBUILD (rev 0)
+++ haskell-regex-compat/trunk/PKGBUILD 2009-12-27 13:51:04 UTC (rev 61868)
@@ -0,0 +1,26 @@
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+pkgname=haskell-regex-compat
+pkgrel=1
+pkgver=0.92
+pkgdesc=""
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-compat"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=(ghc=6.12.1 sh)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/regex-compat/$pkgver/regex-compat-$pkgver.tar.gz)
+install=haskell-regex-compat.install
+
+build() {
+ cd $srcdir/regex-compat-$pkgver
+ runhaskell Setup configure -p --enable-split-objs --enable-shared --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=('ce471a0b255787fad224d0481adcf66f')
Added: haskell-regex-compat/trunk/haskell-regex-compat.install
===================================================================
--- haskell-regex-compat/trunk/haskell-regex-compat.install (rev 0)
+++ haskell-regex-compat/trunk/haskell-regex-compat.install 2009-12-27 13:51:04 UTC (rev 61868)
@@ -0,0 +1,13 @@
+HS_DIR=/usr/share/haskell/haskell-regex-compat
+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