[arch-commits] Commit in haskell-tar/repos (6 files)

Jelle van der Waa jelle at nymeria.archlinux.org
Thu Apr 25 07:40:39 UTC 2013


    Date: Thursday, April 25, 2013 @ 09:40:39
  Author: jelle
Revision: 88946

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

Added:
  haskell-tar/repos/community-staging-i686/
  haskell-tar/repos/community-staging-i686/PKGBUILD
    (from rev 88945, haskell-tar/trunk/PKGBUILD)
  haskell-tar/repos/community-staging-i686/haskell-tar.install
    (from rev 88945, haskell-tar/trunk/haskell-tar.install)
  haskell-tar/repos/community-staging-x86_64/
  haskell-tar/repos/community-staging-x86_64/PKGBUILD
    (from rev 88945, haskell-tar/trunk/PKGBUILD)
  haskell-tar/repos/community-staging-x86_64/haskell-tar.install
    (from rev 88945, haskell-tar/trunk/haskell-tar.install)

----------------------------------------------+
 community-staging-i686/PKGBUILD              |   45 +++++++++++++++++++++++++
 community-staging-i686/haskell-tar.install   |   24 +++++++++++++
 community-staging-x86_64/PKGBUILD            |   45 +++++++++++++++++++++++++
 community-staging-x86_64/haskell-tar.install |   24 +++++++++++++
 4 files changed, 138 insertions(+)

Copied: haskell-tar/repos/community-staging-i686/PKGBUILD (from rev 88945, haskell-tar/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-04-25 07:40:39 UTC (rev 88946)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-tar
+pkgver=0.4.0.1
+pkgrel=5
+pkgdesc='Reading, writing and manipulating tar archive files'
+url='http://hackage.haskell.org/package/tar'
+license=('custom:BSD3')
+arch=('x86_64' 'i686')
+depends=('ghc=7.6.3-1')
+source=("http://hackage.haskell.org/packages/archive/tar/$pkgver/tar-$pkgver.tar.gz")
+install=haskell-tar.install
+sha256sums=('a408274d8325f4e3144c5aa154d72f1ee7b0a7342570fd6805e3be3fe0d97a6d')
+
+build() {
+  cd "$srcdir/tar-$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/tar-$pkgver"
+
+  install -Dm 744 register.sh \
+	  $pkgdir/usr/share/haskell/$pkgname/register.sh
+  install -m 744 unregister.sh \
+	  $pkgdir/usr/share/haskell/$pkgname/unregister.sh
+  install -dm 755 $pkgdir/usr/share/doc/ghc/html/libraries
+  ln -s /usr/share/doc/$pkgname/html \
+	  $pkgdir/usr/share/doc/ghc/html/libraries/tar
+  runhaskell Setup copy --destdir=$pkgdir
+  install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haskell-tar/repos/community-staging-i686/haskell-tar.install (from rev 88945, haskell-tar/trunk/haskell-tar.install)
===================================================================
--- community-staging-i686/haskell-tar.install	                        (rev 0)
+++ community-staging-i686/haskell-tar.install	2013-04-25 07:40:39 UTC (rev 88946)
@@ -0,0 +1,24 @@
+HS_DIR=usr/share/haskell/haskell-tar
+
+post_install() {
+  ${HS_DIR}/register.sh
+	post_remove
+}
+
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+	pre_upgrade
+}
+
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haskell-tar/repos/community-staging-x86_64/PKGBUILD (from rev 88945, haskell-tar/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-04-25 07:40:39 UTC (rev 88946)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Arch Haskell Team <arch-haskell at haskell.org>
+
+pkgname=haskell-tar
+pkgver=0.4.0.1
+pkgrel=5
+pkgdesc='Reading, writing and manipulating tar archive files'
+url='http://hackage.haskell.org/package/tar'
+license=('custom:BSD3')
+arch=('x86_64' 'i686')
+depends=('ghc=7.6.3-1')
+source=("http://hackage.haskell.org/packages/archive/tar/$pkgver/tar-$pkgver.tar.gz")
+install=haskell-tar.install
+sha256sums=('a408274d8325f4e3144c5aa154d72f1ee7b0a7342570fd6805e3be3fe0d97a6d')
+
+build() {
+  cd "$srcdir/tar-$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/tar-$pkgver"
+
+  install -Dm 744 register.sh \
+	  $pkgdir/usr/share/haskell/$pkgname/register.sh
+  install -m 744 unregister.sh \
+	  $pkgdir/usr/share/haskell/$pkgname/unregister.sh
+  install -dm 755 $pkgdir/usr/share/doc/ghc/html/libraries
+  ln -s /usr/share/doc/$pkgname/html \
+	  $pkgdir/usr/share/doc/ghc/html/libraries/tar
+  runhaskell Setup copy --destdir=$pkgdir
+  install -Dm 644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  rm -f $pkgdir/usr/share/doc/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Copied: haskell-tar/repos/community-staging-x86_64/haskell-tar.install (from rev 88945, haskell-tar/trunk/haskell-tar.install)
===================================================================
--- community-staging-x86_64/haskell-tar.install	                        (rev 0)
+++ community-staging-x86_64/haskell-tar.install	2013-04-25 07:40:39 UTC (rev 88946)
@@ -0,0 +1,24 @@
+HS_DIR=usr/share/haskell/haskell-tar
+
+post_install() {
+  ${HS_DIR}/register.sh
+	post_remove
+}
+
+pre_upgrade() {
+  ${HS_DIR}/unregister.sh
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+	pre_upgrade
+}
+
+post_remove() {
+  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list