Date: Sunday, April 27, 2014 @ 22:06:04
  Author: jelle
Revision: 110260

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  haskell-dataenc/repos/community-staging-i686/
  
haskell-dataenc/repos/community-staging-i686/0001-update-build-deps-for-ghc-7.8.2.patch
    (from rev 110259, 
haskell-dataenc/trunk/0001-update-build-deps-for-ghc-7.8.2.patch)
  haskell-dataenc/repos/community-staging-i686/PKGBUILD
    (from rev 110259, haskell-dataenc/trunk/PKGBUILD)
  haskell-dataenc/repos/community-staging-i686/haskell-dataenc.install
    (from rev 110259, haskell-dataenc/trunk/haskell-dataenc.install)
  haskell-dataenc/repos/community-staging-x86_64/
  
haskell-dataenc/repos/community-staging-x86_64/0001-update-build-deps-for-ghc-7.8.2.patch
    (from rev 110259, 
haskell-dataenc/trunk/0001-update-build-deps-for-ghc-7.8.2.patch)
  haskell-dataenc/repos/community-staging-x86_64/PKGBUILD
    (from rev 110259, haskell-dataenc/trunk/PKGBUILD)
  haskell-dataenc/repos/community-staging-x86_64/haskell-dataenc.install
    (from rev 110259, haskell-dataenc/trunk/haskell-dataenc.install)

---------------------------------------------------------------------+
 community-staging-i686/0001-update-build-deps-for-ghc-7.8.2.patch   |   12 ++
 community-staging-i686/PKGBUILD                                     |   49 
++++++++++
 community-staging-i686/haskell-dataenc.install                      |   18 +++
 community-staging-x86_64/0001-update-build-deps-for-ghc-7.8.2.patch |   12 ++
 community-staging-x86_64/PKGBUILD                                   |   49 
++++++++++
 community-staging-x86_64/haskell-dataenc.install                    |   18 +++
 6 files changed, 158 insertions(+)

Copied: 
haskell-dataenc/repos/community-staging-i686/0001-update-build-deps-for-ghc-7.8.2.patch
 (from rev 110259, 
haskell-dataenc/trunk/0001-update-build-deps-for-ghc-7.8.2.patch)
===================================================================
--- community-staging-i686/0001-update-build-deps-for-ghc-7.8.2.patch           
                (rev 0)
+++ community-staging-i686/0001-update-build-deps-for-ghc-7.8.2.patch   
2014-04-27 20:06:04 UTC (rev 110260)
@@ -0,0 +1,12 @@
+diff -aur dataenc-0.14.0.5/dataenc.cabal dataenc-0.14.0.5-new/dataenc.cabal
+--- dataenc-0.14.0.5/dataenc.cabal     2012-12-30 11:30:27.000000000 +0100
++++ dataenc-0.14.0.5-new/dataenc.cabal 2014-04-27 22:01:21.640940945 +0200
+@@ -21,7 +21,7 @@
+ 
+ library
+     hs-source-dirs: src
+-    build-depends: array >= 0.1.0 && < 0.5, base >= 3.0.0 && < 4.7, 
containers >= 0.1.0 && < 0.6
++    build-depends: array >= 0.1.0 && <= 0.5.0.0, base >= 3.0.0 && <= 4.7.0.0, 
containers >= 0.1.0 && < 0.6
+     exposed-modules:
+             Codec.Binary.Base16
+             Codec.Binary.Base32

Copied: haskell-dataenc/repos/community-staging-i686/PKGBUILD (from rev 110259, 
haskell-dataenc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2014-04-27 20:06:04 UTC (rev 110260)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Vesa Kaihlavirta <v...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+# Package generated by cabal2arch 0.7.5
+
+_hkgname=dataenc
+pkgname=haskell-dataenc
+pkgver=0.14.0.5
+pkgrel=3
+pkgdesc="Data encoding library"
+url="http://hackage.haskell.org/package/dataenc";
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=('ghc=7.8.2-2' sh)
+install=${pkgname}.install
+options=('staticlibs')
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+        '0001-update-build-deps-for-ghc-7.8.2.patch')
+md5sums=('4da812ca7a1640a5fdcc676009ab160c'
+         '9fead0d2676158c60290d85ca7899718')
+
+prepare() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+    patch -Np1 -i $srcdir/0001-update-build-deps-for-ghc-7.8.2.patch
+}
+
+build() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+
+    runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+      --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
+      --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock
+    runhaskell Setup register   --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+    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/${_hkgname}
+    runhaskell Setup copy --destdir=${pkgdir}
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
+}

Copied: haskell-dataenc/repos/community-staging-i686/haskell-dataenc.install 
(from rev 110259, haskell-dataenc/trunk/haskell-dataenc.install)
===================================================================
--- community-staging-i686/haskell-dataenc.install                              
(rev 0)
+++ community-staging-i686/haskell-dataenc.install      2014-04-27 20:06:04 UTC 
(rev 110260)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-dataenc
+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)
+}

Copied: 
haskell-dataenc/repos/community-staging-x86_64/0001-update-build-deps-for-ghc-7.8.2.patch
 (from rev 110259, 
haskell-dataenc/trunk/0001-update-build-deps-for-ghc-7.8.2.patch)
===================================================================
--- community-staging-x86_64/0001-update-build-deps-for-ghc-7.8.2.patch         
                (rev 0)
+++ community-staging-x86_64/0001-update-build-deps-for-ghc-7.8.2.patch 
2014-04-27 20:06:04 UTC (rev 110260)
@@ -0,0 +1,12 @@
+diff -aur dataenc-0.14.0.5/dataenc.cabal dataenc-0.14.0.5-new/dataenc.cabal
+--- dataenc-0.14.0.5/dataenc.cabal     2012-12-30 11:30:27.000000000 +0100
++++ dataenc-0.14.0.5-new/dataenc.cabal 2014-04-27 22:01:21.640940945 +0200
+@@ -21,7 +21,7 @@
+ 
+ library
+     hs-source-dirs: src
+-    build-depends: array >= 0.1.0 && < 0.5, base >= 3.0.0 && < 4.7, 
containers >= 0.1.0 && < 0.6
++    build-depends: array >= 0.1.0 && <= 0.5.0.0, base >= 3.0.0 && <= 4.7.0.0, 
containers >= 0.1.0 && < 0.6
+     exposed-modules:
+             Codec.Binary.Base16
+             Codec.Binary.Base32

Copied: haskell-dataenc/repos/community-staging-x86_64/PKGBUILD (from rev 
110259, haskell-dataenc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2014-04-27 20:06:04 UTC (rev 110260)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Vesa Kaihlavirta <v...@archlinux.org>
+# Contributor: Arch Haskell Team <arch-hask...@haskell.org>
+# Package generated by cabal2arch 0.7.5
+
+_hkgname=dataenc
+pkgname=haskell-dataenc
+pkgver=0.14.0.5
+pkgrel=3
+pkgdesc="Data encoding library"
+url="http://hackage.haskell.org/package/dataenc";
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=('ghc=7.8.2-2' sh)
+install=${pkgname}.install
+options=('staticlibs')
+source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz
+        '0001-update-build-deps-for-ghc-7.8.2.patch')
+md5sums=('4da812ca7a1640a5fdcc676009ab160c'
+         '9fead0d2676158c60290d85ca7899718')
+
+prepare() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+    patch -Np1 -i $srcdir/0001-update-build-deps-for-ghc-7.8.2.patch
+}
+
+build() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+
+    runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
+      --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
+      --libsubdir=\$compiler/site-local/\$pkgid
+    runhaskell Setup build
+    runhaskell Setup haddock
+    runhaskell Setup register   --gen-script
+    runhaskell Setup unregister --gen-script
+    sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+package() {
+    cd ${srcdir}/${_hkgname}-${pkgver}
+    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/${_hkgname}
+    runhaskell Setup copy --destdir=${pkgdir}
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+    rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
+}

Copied: haskell-dataenc/repos/community-staging-x86_64/haskell-dataenc.install 
(from rev 110259, haskell-dataenc/trunk/haskell-dataenc.install)
===================================================================
--- community-staging-x86_64/haskell-dataenc.install                            
(rev 0)
+++ community-staging-x86_64/haskell-dataenc.install    2014-04-27 20:06:04 UTC 
(rev 110260)
@@ -0,0 +1,18 @@
+HS_DIR=usr/share/haskell/haskell-dataenc
+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)
+}

Reply via email to