[arch-commits] Commit in (5 files)

Vesa Kaihlavirta vesa at archlinux.org
Tue Nov 2 04:08:42 UTC 2010


    Date: Tuesday, November 2, 2010 @ 00:08:41
  Author: vesa
Revision: 97852

bring in haskell-text from AUR (new dep for darcs-2.5)

Added:
  haskell-text/
  haskell-text/repos/
  haskell-text/trunk/
  haskell-text/trunk/PKGBUILD
  haskell-text/trunk/haskell-text.install

----------------------+
 PKGBUILD             |   35 +++++++++++++++++++++++++++++++++++
 haskell-text.install |   21 +++++++++++++++++++++
 2 files changed, 56 insertions(+)

Added: haskell-text/trunk/PKGBUILD
===================================================================
--- haskell-text/trunk/PKGBUILD	                        (rev 0)
+++ haskell-text/trunk/PKGBUILD	2010-11-02 04:08:41 UTC (rev 97852)
@@ -0,0 +1,35 @@
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+# Package generated by cabal2arch 0.7.3
+# Note: we list all package dependencies.
+# Your package tool should understand 'provides' syntax
+#
+# Keep up to date on http://archhaskell.wordpress.com/
+#
+pkgname=haskell-text
+pkgrel=1
+pkgver=0.9.0.1
+pkgdesc="An efficient packed Unicode text type."
+url="http://hackage.haskell.org/package/text"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+makedepends=()
+depends=('ghc' 'haskell-cabal' 'haskell-bytestring' 'haskell-deepseq>=1.1.0.0')
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/text/0.9.0.1/text-0.9.0.1.tar.gz)
+install=haskell-text.install
+md5sums=('9159889cbff41594707e366081582bc2')
+build() {
+    cd ${srcdir}/text-0.9.0.1
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
+    runhaskell Setup build                   || return 1
+    runhaskell Setup haddock || 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
+    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/text
+    runhaskell Setup copy --destdir=${pkgdir} || return 1
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
+}


Property changes on: haskell-text/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: haskell-text/trunk/haskell-text.install
===================================================================
--- haskell-text/trunk/haskell-text.install	                        (rev 0)
+++ haskell-text/trunk/haskell-text.install	2010-11-02 04:08:41 UTC (rev 97852)
@@ -0,0 +1,21 @@
+HS_DIR=/usr/share/haskell/haskell-text
+post_install() {
+  ${HS_DIR}/register.sh
+  (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+post_upgrade() {
+  ${HS_DIR}/register.sh
+  (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+pre_remove() {
+  ${HS_DIR}/unregister.sh
+}
+post_remove() {
+  (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list