[arch-commits] Commit in (6 files)

Alexander Rødseth arodseth at archlinux.org
Thu Nov 6 10:34:23 UTC 2014


    Date: Thursday, November 6, 2014 @ 11:34:23
  Author: arodseth
Revision: 122043

Added mlton, a Standard ML compiler

Added:
  mlton/
  mlton/repos/
  mlton/repos/community-i686/
  mlton/repos/community-x86_64/
  mlton/trunk/
  mlton/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Added: mlton/trunk/PKGBUILD
===================================================================
--- mlton/trunk/PKGBUILD	                        (rev 0)
+++ mlton/trunk/PKGBUILD	2014-11-06 10:34:23 UTC (rev 122043)
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 120612 2014-10-13 14:26:12Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: tochiro at no.spam.mail.berlios.de
+# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
+# Contributor: Brian De Wolf <arch at bldewolf.com>
+
+pkgname=mlton
+pkgver=20130715
+pkgrel=5
+pkgdesc='Whole-program, optimizing Standard ML compiler'
+arch=('x86_64' 'i686')
+url='http://mlton.org/'
+license=('BSD' 'MIT' 'LGPL')
+depends=('bash' 'gmp')
+makedepends=('setconf')
+options=('staticlibs')
+
+if [[ $CARCH = x86_64 ]]; then
+  source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz" \
+          "http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.amd64-linux.tgz")
+  sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
+              'f6f912009b0946b73af88ff5f3e713b6be63b871696e2697ccf1564b56e7d03b')
+else
+  source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz" \
+          "http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.x86-linux.tgz")
+  sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
+              '92d89627cf760c56d0e9727f328b006341bf5be283fc7d616a6276c26d95b2cf')
+fi
+
+build() {
+  setconf usr/bin/mlton lib="$srcdir/usr/lib/mlton"
+  PATH="$PATH:$srcdir/usr/bin" make -C "$pkgname-$pkgver" -j1 all-no-docs
+}
+
+package() {
+  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" -j1 install-no-docs
+
+  # Copy over the handful of licenses and the README as explanation
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  cp "$pkgname-$pkgver/doc/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list