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