so far for ppc
[archlinuxppc.git] / hugs98 / PKGBUILD
diff --git a/hugs98/PKGBUILD b/hugs98/PKGBUILD
new file mode 100644 (file)
index 0000000..7a9cc0b
--- /dev/null
@@ -0,0 +1,27 @@
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# Contributor: Kevin Piche <kevin@archlinux.org>
+
+pkgname=hugs98
+pkgver=200609
+pkgrel=4
+pkgdesc="Haskell 98 interpreter"
+arch=('i686' 'x86_64' 'ppc')
+url="http://www.haskell.org/hugs"
+license=('custom')
+depends=('readline>=6.0' 'sh')
+source=(http://cvs.haskell.org/Hugs/downloads/2006-09/$pkgname-plus-Sep2006.tar.gz)
+md5sums=('e03e0ad79750d037237c47ebe33fa20e')
+
+build() {
+  if [ "$CARCH" = "x86_64" ]; then
+    unset CFLAGS
+  fi
+
+  cd $startdir/src/$pkgname-plus-Sep2006
+  #rm config.cache
+  ./configure --prefix=/usr --with-pthreads 
+  make  || return 1
+  make DESTDIR=$startdir/pkg install
+  
+  install -Dm644 License ${pkgdir}/usr/share/licenses/hugs98/license
+}