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

Rémy Oudompheng remy at archlinux.org
Tue Dec 7 17:56:05 UTC 2010


    Date: Tuesday, December 7, 2010 @ 12:56:05
  Author: remy
Revision: 102396

Tidy up PKGBUILD.

Modified:
  cabal-install/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-12-07 17:47:48 UTC (rev 102395)
+++ PKGBUILD	2010-12-07 17:56:05 UTC (rev 102396)
@@ -1,23 +1,27 @@
 # Maintainer: Vesa Kaihlavirta <vesa at archlinux.org>
 # Contributor: Arch Haskell Team <arch-haskell at haskell.org>
-# Package originally generated by cabal2arch 0.4.1
 pkgname=cabal-install
+pkgver=0.8.2
 pkgrel=1
-pkgver=0.8.2
 pkgdesc="The command-line interface for Cabal and Hackage."
-url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install"
+url="http://hackage.haskell.org/package/cabal-install"
 license=('custom:BSD3')
 arch=('i686' 'x86_64')
 makedepends=('ghc=6.12.3' 'haskell-http>=4000' 'haskell-zlib')
 depends=('gmp' zlib)
 options=('strip')
 source=(http://hackage.haskell.org/packages/archive/cabal-install/$pkgver/cabal-install-$pkgver.tar.gz)
+md5sums=('4abd0933dff361ff69ee9288a211e4e1')
 
 build() {
     cd $srcdir/cabal-install-$pkgver
-    runhaskell Setup configure --enable-shared --enable-split-objs --enable-executable-stripping --prefix=/usr || return 1
-    runhaskell Setup build                   || return 1
-    runhaskell Setup copy --destdir=$pkgdir || return 1
-    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1
+    runhaskell Setup configure --enable-shared --enable-split-objs --enable-executable-stripping --prefix=/usr
+    runhaskell Setup build
 }
-md5sums=('4abd0933dff361ff69ee9288a211e4e1')
+
+package() {
+    cd $srcdir/cabal-install-$pkgver
+    runhaskell Setup copy --destdir=$pkgdir
+    install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+




More information about the arch-commits mailing list