[arch-commits] Commit in (5 files)
Vesa Kaihlavirta
vesa at archlinux.org
Sun Dec 13 07:24:59 UTC 2009
Date: Sunday, December 13, 2009 @ 02:24:59
Author: vesa
Revision: 61195
separated from ghc-6.12, but essential lib for darcs
Added:
haskell-mtl/
haskell-mtl/repos/
haskell-mtl/trunk/
haskell-mtl/trunk/PKGBUILD
haskell-mtl/trunk/haskell-mtl.install
---------------------+
PKGBUILD | 26 ++++++++++++++++++++++++++
haskell-mtl.install | 13 +++++++++++++
2 files changed, 39 insertions(+)
Added: haskell-mtl/trunk/PKGBUILD
===================================================================
--- haskell-mtl/trunk/PKGBUILD (rev 0)
+++ haskell-mtl/trunk/PKGBUILD 2009-12-13 07:24:59 UTC (rev 61195)
@@ -0,0 +1,26 @@
+# Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+pkgname=haskell-mtl
+pkgrel=1
+pkgver=1.1.0.2
+pkgdesc="Monad transformer library"
+url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mtl"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=(ghc=6.12.1 sh)
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/mtl/$pkgver/mtl-$pkgver.tar.gz)
+install=haskell-mtl.install
+
+build() {
+ cd $srcdir/mtl-$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=('1e933bb7abb38b7bb423929ba37219db')
Added: haskell-mtl/trunk/haskell-mtl.install
===================================================================
--- haskell-mtl/trunk/haskell-mtl.install (rev 0)
+++ haskell-mtl/trunk/haskell-mtl.install 2009-12-13 07:24:59 UTC (rev 61195)
@@ -0,0 +1,13 @@
+HS_DIR=/usr/share/haskell/haskell-mtl
+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