Date: Friday, February 9, 2018 @ 08:14:27
  Author: arodseth
Revision: 290440

upgpkg: mlton 20180207-1

Modified:
  mlton/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-09 08:13:45 UTC (rev 290439)
+++ PKGBUILD    2018-02-09 08:14:27 UTC (rev 290440)
@@ -6,8 +6,8 @@
 # Contributor: Brian De Wolf <a...@bldewolf.com>
 
 pkgname=mlton
-pkgver=20170725
-pkgrel=3
+pkgver=20180207
+pkgrel=1
 pkgdesc='Whole-program, optimizing Standard ML compiler'
 arch=('x86_64')
 url='http://mlton.org/'
@@ -14,17 +14,19 @@
 license=('BSD' 'MIT' 'LGPL')
 depends=('gmp')
 makedepends=('git' 'mlton')
-#makedepends_x86_64=('smlnj' 'setconf')
 options=('staticlibs')
-source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12";)
+source=("git+https://github.com/MLton/mlton#tag=on-$pkgver-release";)
 md5sums=('SKIP')
 
+# Make dependencies for bootstrapping mlton on x86_64:
+#makedepends_x86_64=('smlnj' 'setconf')
+
 prepare() {
   cd "$pkgname"
 
   sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
 
-  # Needed for bootstrapping mlton on x86_64
+  # For bootstrapping mlton on x86_64
   #if [ $CARCH = 'x86_64' ]; then
   #  find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
   #fi
@@ -32,9 +34,9 @@
 
 build() {
   export CFLAGS="$CFLAGS -fPIC"
-  export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'" 
+  export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'"
 
-  # Needed for bootstrapping mlton on x86_64
+  # For bootstrapping mlton on x86_64
   #if [ "$CARCH" = 'x86_64' ]; then
   #  # Bootstrap with SML-NJ on x86_64
   #  make -C "$pkgname" -j1 smlnj-mlton all-no-docs
@@ -42,14 +44,15 @@
   #  make -C "$pkgname" -j1 all-no-docs
   #fi
 
-  make -C "$pkgname" -j1 all-no-docs
+  make -C "$pkgname" -j1
 }
 
 package() {
-  make -C "$pkgname" DESTDIR="$pkgdir" install-no-docs
+  make -C "$pkgname" PREFIX=/usr DESTDIR="$pkgdir" install
   for f in "$pkgname"/doc/license/*-LICENSE; do
     install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/$f"
   done
 }
 
+# getver: no
 # vim: ts=2 sw=2 et:

Reply via email to