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

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


    Date: Tuesday, December 7, 2010 @ 12:40:36
  Author: remy
Revision: 102388

upgpkg: happy 1.18.5-2
Rebuild with GHC 7.0.1

Modified:
  happy/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-12-07 17:31:26 UTC (rev 102387)
+++ PKGBUILD	2010-12-07 17:40:36 UTC (rev 102388)
@@ -4,24 +4,27 @@
  
 pkgname=happy
 pkgver=1.18.5
-pkgrel=1
+pkgrel=2
 pkgdesc="The Parser Generator for Haskell"
 url="http://www.haskell.org/happy/"
 arch=('i686' 'x86_64')
 license=("custom:BSD3")
 depends=(gmp)
-makedepends=(ghc haskell-mtl)
+makedepends=(ghc=7.0.1 haskell-mtl)
 options=(strip)
 source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('9e77b67df7b6a4d7273383cc890f39e8')
 
-
 build() {
-  cd $startdir/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
 
-  runhaskell Setup.lhs configure --prefix=/usr || return 1
-  runhaskell Setup.lhs build || return 1
-  runhaskell Setup.lhs copy --destdir=$startdir/pkg || return 1
+  runhaskell Setup.lhs configure -O --prefix=/usr
+  runhaskell Setup.lhs build
+}
 
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  runhaskell Setup.lhs copy --destdir=${pkgdir}
   install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
 }
-md5sums=('9e77b67df7b6a4d7273383cc890f39e8')
+




More information about the arch-commits mailing list