[arch-commits] Commit in darcs/trunk (PKGBUILD darcs.install)

Vesa Kaihlavirta vesa at archlinux.org
Tue Jul 28 06:33:37 UTC 2009


    Date: Tuesday, July 28, 2009 @ 02:33:37
  Author: vesa
Revision: 47831

=> 2.3.0

Modified:
  darcs/trunk/PKGBUILD
  darcs/trunk/darcs.install

---------------+
 PKGBUILD      |   26 +++++++++++++++++---------
 darcs.install |   35 ++++++-----------------------------
 2 files changed, 23 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-07-28 06:23:39 UTC (rev 47830)
+++ PKGBUILD	2009-07-28 06:33:37 UTC (rev 47831)
@@ -3,22 +3,30 @@
 # Contributor: Simo Leone <neotuli at gmail.com>
 
 pkgname=darcs
-pkgver=2.2.0
-pkgrel=1.1
+pkgver=2.3.0
+pkgrel=1
 pkgdesc="Decentralized replacement for CVS with roots in quantum mechanics"
 arch=(i686 x86_64)
 url="http://darcs.net/"
 license=('GPL')
 depends=('curl' 'gmp' 'ncurses>=5.6-7')
-makedepends=('ghc')
+makedepends=('ghc' 'haskell-hashed-storage' 'haskell-haskeline')
 install=darcs.install
-source=("http://darcs.net/$pkgname-$pkgver.tar.gz")
-md5sums=('8f0a5eba5971e7cf324c63664cde59e2')
+source=("http://darcs.net/releases/$pkgname-$pkgver.tar.gz")
 
 build() {
     cd $startdir/src/$pkgname-$pkgver
-    ./configure --prefix=/usr --sysconfdir=/etc --with-sendmail=sendmail
-    make || return 1
-    make DESTDIR=$startdir/pkg install
+    runhaskell Setup.lhs configure --ghc --prefix=/usr \
+         --libsubdir=\$compiler/site-local/\$pkgid || return 1
+
+    runhaskell Setup.lhs build || return 1
+
+    runhaskell Setup.lhs register --gen-script
+    runhaskell Setup.lhs unregister --gen-script
+  
+    install -D -m744 register.sh $startdir/pkg/usr/share/haskell/$pkgname/register.sh
+    install -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh
+    runhaskell Setup.lhs copy --destdir=$startdir/pkg
+
 }
-
+md5sums=('aa970a6eca29c407a22b366c8ca392ab')

Modified: darcs.install
===================================================================
--- darcs.install	2009-07-28 06:23:39 UTC (rev 47830)
+++ darcs.install	2009-07-28 06:33:37 UTC (rev 47831)
@@ -1,44 +1,21 @@
-# This is a default template for a post-install scriptlet.  You can
-# remove any functions you don't need (and this header).
+HS_DIR=/usr/share/haskell/darcs
 
-# arg 1:  the new package version
-pre_install() {
-  /bin/true
-}
-
-# arg 1:  the new package version
 post_install() {
-  echo "Optional dependencies:"
-  echo "gnupg - for patch signing"
-  echo "postfix - for patch sending via email"
-  /bin/true
+    ${HS_DIR}/register.sh
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 pre_upgrade() {
-  /bin/true
+  ${HS_DIR}/unregister.sh
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 post_upgrade() {
-  echo "Optional dependencies:"
-  echo "gnupg - for patch signing"
-  echo "postfix - for patch sending via email"
-  /bin/true
+  ${HS_DIR}/register.sh
 }
 
-# arg 1:  the old package version
 pre_remove() {
-  /bin/true
+  ${HS_DIR}/unregister.sh
 }
-
-# arg 1:  the old package version
-post_remove() {
-  /bin/true
-}
-
 op=$1
 shift
+
 $op $*




More information about the arch-commits mailing list