Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated cmdargs, mtlparse, numeric-prelude, regexpr, and texmath from…

… Hackage.

Bumped halipeto, hledger-lib, hledger, pandoc, etc. because they depend
on (at least) one of the updated packages.

These files have been generated with the latest tool-chain, which comes
with several updates:

 * the cabal name of the package is available as ${_hkgname},

 * the generated uninstall.sh hook uses --force to avoid warnings during
   updates, and

 * our attribution header of choice these days is "Maintainer:".
  • Loading branch information...
commit 78b2f329c3b2e5692a40832da3fce2f6c5ea6268 1 parent 65013e2
Peter Simons authored November 01, 2010

Showing 61 changed files with 686 additions and 791 deletions. Show diff stats Hide diff stats

  1. 30  haskell-archlinux/PKGBUILD
  2. 3  haskell-archlinux/haskell-archlinux.install
  3. 49  haskell-cmdargs/PKGBUILD
  4. 3  haskell-cmdargs/haskell-cmdargs.install
  5. 43  haskell-csv/PKGBUILD
  6. 3  haskell-csv/haskell-csv.install
  7. 45  haskell-digest/PKGBUILD
  8. 3  haskell-digest/haskell-digest.install
  9. 45  haskell-funcmp/PKGBUILD
  10. 3  haskell-funcmp/haskell-funcmp.install
  11. 45  haskell-halipeto/PKGBUILD
  12. 3  haskell-halipeto/haskell-halipeto.install
  13. 43  haskell-haxml/PKGBUILD
  14. 3  haskell-haxml/haskell-haxml.install
  15. 45  haskell-hledger-lib/PKGBUILD
  16. 3  haskell-hledger-lib/haskell-hledger-lib.install
  17. 47  haskell-hopenssl/PKGBUILD
  18. 3  haskell-hopenssl/haskell-hopenssl.install
  19. 47  haskell-hsemail/PKGBUILD
  20. 3  haskell-hsemail/haskell-hsemail.install
  21. 47  haskell-hsyslog/PKGBUILD
  22. 3  haskell-hsyslog/haskell-hsyslog.install
  23. 47  haskell-mtlparse/PKGBUILD
  24. 3  haskell-mtlparse/haskell-mtlparse.install
  25. 45  haskell-non-negative/PKGBUILD
  26. 3  haskell-non-negative/haskell-non-negative.install
  27. 45  haskell-numeric-prelude/PKGBUILD
  28. 3  haskell-numeric-prelude/haskell-numeric-prelude.install
  29. 45  haskell-pandoc/PKGBUILD
  30. 3  haskell-pandoc/haskell-pandoc.install
  31. 43  haskell-polyparse/PKGBUILD
  32. 3  haskell-polyparse/haskell-polyparse.install
  33. 47  haskell-regexpr/PKGBUILD
  34. 3  haskell-regexpr/haskell-regexpr.install
  35. 45  haskell-safe/PKGBUILD
  36. 3  haskell-safe/haskell-safe.install
  37. 47  haskell-split/PKGBUILD
  38. 3  haskell-split/haskell-split.install
  39. 47  haskell-storable-record/PKGBUILD
  40. 3  haskell-storable-record/haskell-storable-record.install
  41. 47  haskell-streamproc/PKGBUILD
  42. 3  haskell-streamproc/haskell-streamproc.install
  43. 45  haskell-tar/PKGBUILD
  44. 3  haskell-tar/haskell-tar.install
  45. 47  haskell-texmath/PKGBUILD
  46. 3  haskell-texmath/haskell-texmath.install
  47. 49  haskell-transformers/PKGBUILD
  48. 3  haskell-transformers/haskell-transformers.install
  49. 47  haskell-utility-ht/PKGBUILD
  50. 3  haskell-utility-ht/haskell-utility-ht.install
  51. 45  haskell-uulib/PKGBUILD
  52. 3  haskell-uulib/haskell-uulib.install
  53. 47  haskell-xml/PKGBUILD
  54. 3  haskell-xml/haskell-xml.install
  55. 43  haskell-zip-archive/PKGBUILD
  56. 3  haskell-zip-archive/haskell-zip-archive.install
  57. 47  haskell-zlib-bindings/PKGBUILD
  58. 3  haskell-zlib-bindings/haskell-zlib-bindings.install
  59. 28  hasktags/PKGBUILD
  60. 45  hledger/PKGBUILD
  61. 3  hledger/hledger.install
30  haskell-archlinux/PKGBUILD
... ...
@@ -1,37 +1,33 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.5
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=archlinux
8 3
 pkgname=haskell-archlinux
9  
-pkgrel=1
10 4
 pkgver=0.3.4
  5
+pkgrel=1
11 6
 pkgdesc="Support for working with Arch Linux packages."
12  
-url="http://hackage.haskell.org/package/archlinux"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('custom:BSD3')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-cabal>=1.6' 'haskell-bytestring' 'haskell-containers' 'haskell-directory' 'haskell-filepath' 'haskell-pretty' 'haskell-tar')
  11
+depends=('ghc' 'haskell-cabal>=1.6' 'haskell-tar')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/archlinux/0.3.4/archlinux-0.3.4.tar.gz)
19  
-install=haskell-archlinux.install
20  
-md5sums=(0c72c97d260c7688af6d7a071bc13f23)
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
  15
+md5sums=('0c72c97d260c7688af6d7a071bc13f23')
21 16
 build() {
22  
-    cd ${srcdir}/archlinux-0.3.4
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
24 19
     runhaskell Setup build
25 20
     runhaskell Setup haddock
26 21
     runhaskell Setup register   --gen-script
27 22
     runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
28 24
 }
29 25
 package() {
30  
-    cd ${srcdir}/archlinux-0.3.4
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
31 27
     install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
32 28
     install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
33 29
     install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
34  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/archlinux
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
35 31
     runhaskell Setup copy --destdir=${pkgdir}
36 32
     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
37 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
3  haskell-archlinux/haskell-archlinux.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
49  haskell-cmdargs/PKGBUILD
... ...
@@ -1,35 +1,34 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=cmdargs
8 3
 pkgname=haskell-cmdargs
  4
+pkgver=0.6.1
9 5
 pkgrel=1
10  
-pkgver=0.6
11 6
 pkgdesc="Command line argument processing"
12  
-url="http://hackage.haskell.org/package/cmdargs"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('custom:BSD3')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-filepath' 'haskell-mtl')
  11
+depends=('ghc' 'haskell-mtl')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/cmdargs/0.6/cmdargs-0.6.tar.gz)
19  
-install=haskell-cmdargs.install
20  
-md5sums=('af698e16cd4c245f275686cf6aa99528')
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
  15
+md5sums=('de2d6783a3148b043864455233cdb661')
21 16
 build() {
22  
-    cd ${srcdir}/cmdargs-0.6
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/cmdargs
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
33  
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
  32
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
35 34
 }
3  haskell-cmdargs/haskell-cmdargs.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
43  haskell-csv/PKGBUILD
... ...
@@ -1,31 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=csv
6 3
 pkgname=haskell-csv
7  
-pkgrel=1
8 4
 pkgver=0.1.1
  5
+pkgrel=1
9 6
 pkgdesc="CSV loader and dumper"
10  
-url="http://hackage.haskell.org/package/csv"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('LGPL')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'haskell-filepath' 'haskell-parsec')
  11
+depends=('ghc' 'haskell-parsec')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/csv/0.1.1/csv-0.1.1.tar.gz)
17  
-install=haskell-csv.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
18 15
 md5sums=('312cdb7d59528a161034b3397af10266')
19 16
 build() {
20  
-    cd ${srcdir}/csv-0.1.1
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/csv
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
31 32
 }
3  haskell-csv/haskell-csv.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-digest/PKGBUILD
... ...
@@ -1,33 +1,34 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=digest
6 3
 pkgname=haskell-digest
7  
-pkgrel=1
8 4
 pkgver=0.0.0.8
  5
+pkgrel=1
9 6
 pkgdesc="Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now."
10  
-url="http://hackage.haskell.org/package/digest"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('custom:BSD3')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'zlib')
  11
+depends=('ghc' 'zlib')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/digest/0.0.0.8/digest-0.0.0.8.tar.gz)
17  
-install=haskell-digest.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
18 15
 md5sums=('3a730a6439b14fb7a30bcd03c9e3f4ff')
19 16
 build() {
20  
-    cd ${srcdir}/digest-0.0.0.8
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/digest
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
31  
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
  32
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
32 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
33 34
 }
3  haskell-digest/haskell-digest.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-funcmp/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=funcmp
8 3
 pkgname=haskell-funcmp
9  
-pkgrel=1
10 4
 pkgver=1.5
  5
+pkgrel=1
11 6
 pkgdesc="Functional MetaPost"
12  
-url="http://hackage.haskell.org/package/funcmp"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-filepath' 'haskell-process')
  11
+depends=('ghc')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/funcmp/1.5/funcmp-1.5.tar.gz)
19  
-install=haskell-funcmp.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('83d82b6423508ac37092a2397d712ea6')
21 16
 build() {
22  
-    cd ${srcdir}/funcmp-1.5
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/funcmp
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-funcmp/haskell-funcmp.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-halipeto/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=halipeto
8 3
 pkgname=haskell-halipeto
9  
-pkgrel=1
10 4
 pkgver=2.3
  5
+pkgrel=2
11 6
 pkgdesc="Haskell Static Web Page Generator"
12  
-url="http://hackage.haskell.org/package/halipeto"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-haxml>=1.20' 'haskell-directory' 'haskell-pandoc')
  11
+depends=('ghc' 'haskell-haxml>=1.20' 'haskell-pandoc')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/halipeto/2.3/halipeto-2.3.tar.gz)
19  
-install=haskell-halipeto.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('2772511bcaa91c295325856d211fa4a6')
21 16
 build() {
22  
-    cd ${srcdir}/halipeto-2.3
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/halipeto
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-halipeto/haskell-halipeto.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
43  haskell-haxml/PKGBUILD
... ...
@@ -1,31 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=HaXml
6 3
 pkgname=haskell-haxml
7  
-pkgrel=1
8 4
 pkgver=1.20.2
  5
+pkgrel=1
9 6
 pkgdesc="Utilities for manipulating XML documents"
10  
-url="http://hackage.haskell.org/package/HaXml"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('LGPL')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'haskell-bytestring' 'haskell-containers' 'haskell-filepath' 'haskell-haskell98' 'haskell-polyparse>=1.2' 'haskell-pretty' 'haskell-random')
  11
+depends=('ghc' 'haskell-polyparse>=1.2')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/HaXml/1.20.2/HaXml-1.20.2.tar.gz)
17  
-install=haskell-haxml.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
18 15
 md5sums=('9635c348e70c0446e74783e7c267050c')
19 16
 build() {
20  
-    cd ${srcdir}/HaXml-1.20.2
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/HaXml
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
31 32
 }
3  haskell-haxml/haskell-haxml.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-hledger-lib/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=hledger-lib
8 3
 pkgname=haskell-hledger-lib
9  
-pkgrel=1
10 4
 pkgver=0.12.1
  5
+pkgrel=2
11 6
 pkgdesc="Core types and utilities for working with hledger (or c++ ledger) data."
12  
-url="http://hackage.haskell.org/package/hledger-lib"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-hunit' 'haskell-containers' 'haskell-directory' 'haskell-filepath' 'haskell-mtl' 'haskell-old-locale' 'haskell-old-time' 'haskell-parsec' 'haskell-regexpr>=0.5.1' 'haskell-safe>=0.2' 'haskell-split' 'haskell-time' 'haskell-utf8-string')
  11
+depends=('ghc' 'haskell-hunit' 'haskell-mtl' 'haskell-parsec' 'haskell-regexpr>=0.5.1' 'haskell-safe>=0.2' 'haskell-split<0.2' 'haskell-utf8-string<0.4')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/hledger-lib/0.12.1/hledger-lib-0.12.1.tar.gz)
19  
-install=haskell-hledger-lib.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('b0774eaa3c0e377385484b6d3cb69834')
21 16
 build() {
22  
-    cd ${srcdir}/hledger-lib-0.12.1
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/hledger-lib
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-hledger-lib/haskell-hledger-lib.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
47  haskell-hopenssl/PKGBUILD
... ...
@@ -1,35 +1,34 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=hopenssl
8 3
 pkgname=haskell-hopenssl
9  
-pkgrel=1
10 4
 pkgver=1.4
  5
+pkgrel=1
11 6
 pkgdesc="FFI bindings to OpenSSL's EVP digest interface"
12  
-url="http://hackage.haskell.org/package/hopenssl"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('custom:BSD3')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-bytestring' 'haskell-mtl' 'openssl')
  11
+depends=('ghc' 'haskell-mtl' 'openssl')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/hopenssl/1.4/hopenssl-1.4.tar.gz)
19  
-install=haskell-hopenssl.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('376592abb196af9f71e12e22d2daab30')
21 16
 build() {
22  
-    cd ${srcdir}/hopenssl-1.4
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/hopenssl
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
33  
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
  32
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
35 34
 }
3  haskell-hopenssl/haskell-hopenssl.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
47  haskell-hsemail/PKGBUILD
... ...
@@ -1,35 +1,34 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=hsemail
8 3
 pkgname=haskell-hsemail
9  
-pkgrel=1
10 4
 pkgver=1.6
  5
+pkgrel=1
11 6
 pkgdesc="Internet Message Parsers"
12  
-url="http://hackage.haskell.org/package/hsemail"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('custom:BSD3')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-mtl' 'haskell-old-time' 'haskell-parsec')
  11
+depends=('ghc' 'haskell-mtl' 'haskell-parsec')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/hsemail/1.6/hsemail-1.6.tar.gz)
19  
-install=haskell-hsemail.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('fa56a870e06435ccea8da0ecebdbf689')
21 16
 build() {
22  
-    cd ${srcdir}/hsemail-1.6
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/hsemail
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
33  
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
  32
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
35 34
 }
3  haskell-hsemail/haskell-hsemail.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
47  haskell-hsyslog/PKGBUILD
... ...
@@ -1,35 +1,34 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=hsyslog
8 3
 pkgname=haskell-hsyslog
9  
-pkgrel=1
10 4
 pkgver=1.4
  5
+pkgrel=1
11 6
 pkgdesc="FFI interface to syslog(3) from POSIX.1-2001."
12  
-url="http://hackage.haskell.org/package/hsyslog"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('custom:BSD3')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal')
  11
+depends=('ghc')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/hsyslog/1.4/hsyslog-1.4.tar.gz)
19  
-install=haskell-hsyslog.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('2a8bd79ba3a374c15151b7b03a9c65ce')
21 16
 build() {
22  
-    cd ${srcdir}/hsyslog-1.4
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/hsyslog
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
33  
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
  32
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 33
     rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
35 34
 }
3  haskell-hsyslog/haskell-hsyslog.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
47  haskell-mtlparse/PKGBUILD
... ...
@@ -1,31 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=mtlparse
6 3
 pkgname=haskell-mtlparse
  4
+pkgver=0.1.1
7 5
 pkgrel=1
8  
-pkgver=0.0.1
9  
-pkgdesc="parse library use mtl package"
10  
-url="http://hackage.haskell.org/package/mtlparse"
  6
+pkgdesc="parse library using mtl package"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('LGPL')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'haskell-mtl')
  11
+depends=('ghc' 'haskell-mtl')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/mtlparse/0.0.1/mtlparse-0.0.1.tar.gz)
17  
-install=haskell-mtlparse.install
18  
-md5sums=('a6c72e0e0f7a2aa1f927ab553c4464f3')
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
  15
+md5sums=('f70a187b397aed658321029cffa3513c')
19 16
 build() {
20  
-    cd ${srcdir}/mtlparse-0.0.1
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/mtlparse
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
31 32
 }
3  haskell-mtlparse/haskell-mtlparse.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-non-negative/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=non-negative
8 3
 pkgname=haskell-non-negative
9  
-pkgrel=1
10 4
 pkgver=0.1
  5
+pkgrel=1
11 6
 pkgdesc="Non-negative numbers"
12  
-url="http://hackage.haskell.org/package/non-negative"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-quickcheck' 'haskell-utility-ht')
  11
+depends=('ghc' 'haskell-quickcheck<3' 'haskell-utility-ht<0.1')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/non-negative/0.1/non-negative-0.1.tar.gz)
19  
-install=haskell-non-negative.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('9afc0b00487d436a23b377a5f0571851')
21 16
 build() {
22  
-    cd ${srcdir}/non-negative-0.1
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/non-negative
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-non-negative/haskell-non-negative.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-numeric-prelude/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=numeric-prelude
8 3
 pkgname=haskell-numeric-prelude
9  
-pkgrel=1
10 4
 pkgver=0.2
  5
+pkgrel=1
11 6
 pkgdesc="An experimental alternative hierarchy of numeric type classes"
12  
-url="http://hackage.haskell.org/package/numeric-prelude"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-quickcheck' 'haskell-array' 'haskell-containers' 'haskell-non-negative' 'haskell-parsec' 'haskell-random' 'haskell-storable-record' 'haskell-utility-ht')
  11
+depends=('ghc' 'haskell-quickcheck<3' 'haskell-non-negative<0.2' 'haskell-parsec<4' 'haskell-storable-record<0.1' 'haskell-utility-ht<0.1')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/numeric-prelude/0.2/numeric-prelude-0.2.tar.gz)
19  
-install=haskell-numeric-prelude.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('9fe1d9b9e1646831ee4df4d1fee4cdbc')
21 16
 build() {
22  
-    cd ${srcdir}/numeric-prelude-0.2
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/numeric-prelude
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-numeric-prelude/haskell-numeric-prelude.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
45  haskell-pandoc/PKGBUILD
... ...
@@ -1,33 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7.3
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
6  
-# Keep up to date on http://archhaskell.wordpress.com/
7  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=pandoc
8 3
 pkgname=haskell-pandoc
9  
-pkgrel=1
10 4
 pkgver=1.6
  5
+pkgrel=2
11 6
 pkgdesc="Conversion between markup formats"
12  
-url="http://hackage.haskell.org/package/pandoc"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
13 8
 license=('GPL')
14 9
 arch=('i686' 'x86_64')
15 10
 makedepends=()
16  
-depends=('ghc' 'haskell-cabal' 'haskell-http>=4000.0.5' 'haskell-bytestring>=0.9' 'haskell-containers>=0.1' 'haskell-directory>=1' 'haskell-extensible-exceptions' 'haskell-filepath>=1.1' 'haskell-mtl>=1.1' 'haskell-network>=2' 'haskell-old-time>=1' 'haskell-parsec>=2.1' 'haskell-pretty>=1' 'haskell-process>=1' 'haskell-random' 'haskell-syb' 'haskell-texmath>=0.3' 'haskell-utf8-string>=0.3' 'haskell-xhtml>=3000.0' 'haskell-xml' 'haskell-zip-archive>=0.1.1.4')
  11
+depends=('ghc' 'haskell-http>=4000.0.5' 'haskell-mtl>=1.1' 'haskell-network>=2' 'haskell-parsec>=2.1' 'haskell-texmath>=0.3' 'haskell-utf8-string>=0.3' 'haskell-xhtml>=3000.0' 'haskell-xml<1.4' 'haskell-zip-archive>=0.1.1.4')
17 12
 options=('strip')
18  
-source=(http://hackage.haskell.org/packages/archive/pandoc/1.6/pandoc-1.6.tar.gz)
19  
-install=haskell-pandoc.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
20 15
 md5sums=('c24014cd65471a056938cf0f08e1dfd4')
21 16
 build() {
22  
-    cd ${srcdir}/pandoc-1.6
23  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
24  
-    runhaskell Setup build                   || return 1
25  
-    runhaskell Setup haddock || return 1
26  
-    runhaskell Setup register   --gen-script || return 1
27  
-    runhaskell Setup unregister --gen-script || return 1
28  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
29  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
30  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
31  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/pandoc
32  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
33 32
 }
3  haskell-pandoc/haskell-pandoc.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
43  haskell-polyparse/PKGBUILD
... ...
@@ -1,31 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=polyparse
6 3
 pkgname=haskell-polyparse
7  
-pkgrel=1
8 4
 pkgver=1.4
  5
+pkgrel=1
9 6
 pkgdesc="A variety of alternative parser combinator libraries."
10  
-url="http://hackage.haskell.org/package/polyparse"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('LGPL')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'haskell-bytestring' 'haskell-haskell98')
  11
+depends=('ghc')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/polyparse/1.4/polyparse-1.4.tar.gz)
17  
-install=haskell-polyparse.install
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
18 15
 md5sums=('1783867124b49eefdbdc9ac39caf3174')
19 16
 build() {
20  
-    cd ${srcdir}/polyparse-1.4
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/polyparse
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
31 32
 }
3  haskell-polyparse/haskell-polyparse.install
@@ -16,6 +16,3 @@ pre_remove() {
16 16
 post_remove() {
17 17
   (cd /usr/share/doc/ghc/html/libraries; ./gen_contents_index)
18 18
 }
19  
-op=$1
20  
-shift
21  
-$op $*
47  haskell-regexpr/PKGBUILD
... ...
@@ -1,31 +1,32 @@
1  
-# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
2  
-# Package generated by cabal2arch 0.7
3  
-# Note: we list all package dependencies.
4  
-# Your package tool should understand 'provides' syntax
5  
-#
  1
+# Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
  2
+_hkgname=regexpr
6 3
 pkgname=haskell-regexpr
7  
-pkgrel=1
8  
-pkgver=0.5.1
  4
+pkgver=0.5.3
  5
+pkgrel=2
9 6
 pkgdesc="regular expression like Perl/Ruby in Haskell"
10  
-url="http://hackage.haskell.org/package/regexpr"
  7
+url="http://hackage.haskell.org/package/${_hkgname}"
11 8
 license=('LGPL')
12 9
 arch=('i686' 'x86_64')
13 10
 makedepends=()
14  
-depends=('ghc' 'haskell-cabal' 'haskell-hunit' 'haskell-mtl' 'haskell-mtlparse>=0.0.1')
  11
+depends=('ghc' 'haskell-hunit' 'haskell-mtl' 'haskell-mtlparse>=0.1.0')
15 12
 options=('strip')
16  
-source=(http://hackage.haskell.org/packages/archive/regexpr/0.5.1/regexpr-0.5.1.tar.gz)
17  
-install=haskell-regexpr.install
18  
-md5sums=('c1c998331546c2248450b183a72fe3a6')
  13
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
  14
+install=${pkgname}.install
  15
+md5sums=('481f5354628cacea8958d457ea6b12b8')
19 16
 build() {
20  
-    cd ${srcdir}/regexpr-0.5.1
21  
-    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
22  
-    runhaskell Setup build                   || return 1
23  
-    runhaskell Setup haddock || return 1
24  
-    runhaskell Setup register   --gen-script || return 1
25  
-    runhaskell Setup unregister --gen-script || return 1
26  
-    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/$pkgname/register.sh
27  
-    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
28  
-    install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29  
-    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/regexpr
30  
-    runhaskell Setup copy --destdir=${pkgdir} || return 1
  17
+    cd ${srcdir}/${_hkgname}-${pkgver}
  18
+    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} -O --enable-split-objs
  19
+    runhaskell Setup build
  20
+    runhaskell Setup haddock
  21
+    runhaskell Setup register   --gen-script
  22
+    runhaskell Setup unregister --gen-script
  23
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
  24
+}
  25
+package() {
  26
+    cd ${srcdir}/${_hkgname}-${pkgver}
  27
+    install -D -m744 register.sh   ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
  28
+    install    -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
  29
+    install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
  30
+    ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
  31
+    runhaskell Setup copy --destdir=${pkgdir}
31 32
 }
3  haskell-regexpr/haskell-regexpr.install