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

Felix Yan felixonmars at archlinux.org
Thu Aug 23 07:25:32 UTC 2018


    Date: Thursday, August 23, 2018 @ 07:25:32
  Author: felixonmars
Revision: 373326

upgpkg: dart 2.0.0-1

Modified:
  dart/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-23 07:09:17 UTC (rev 373325)
+++ PKGBUILD	2018-08-23 07:25:32 UTC (rev 373326)
@@ -7,7 +7,7 @@
 # Contributor: Julien Nicoulaud <julien.nicoulaud at gmail.com>
 
 pkgname=dart
-pkgver=1.24.3
+pkgver=2.0.0
 pkgrel=1
 pkgdesc='The dart programming language SDK'
 arch=('x86_64')
@@ -16,7 +16,7 @@
 makedepends=('setconf')
 options=('!strip')
 source_x86_64+=("$pkgname-$pkgver-64.zip::http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip")
-sha512sums_x86_64=('ec050c51f2adae2fa6c57955b93f29580c07969965c33e4625bc94e44eb22244af616d82fc5fe85b8d13b8371b9874ff55baa400ab321883fbc83c1075fae219')
+sha512sums_x86_64=('67a83676da8095d3c0787b10b2a998e3f5660766851a2c65110881b9740fc8bf4f99ee5b7677f2919361459888d00e6dc5542df79f647b12e4cee65d9cbe79d0')
 
 prepare() {
   # Fix permissions
@@ -27,13 +27,11 @@
   cd "$pkgname-sdk/bin"
 
   # Configure paths
-  setconf dart2js BIN_DIR "/opt/$pkgname-sdk/bin"
-  setconf dart2js PROG_NAME "/opt/$pkgname-sdk/bin/dart2js"
-  setconf dartanalyzer SCRIPT_DIR "/opt/$pkgname-sdk/bin"
-  setconf pub BIN_DIR "/opt/$pkgname-sdk/bin"
-  setconf pub SDK_DIR "/opt/$pkgname-sdk/"
-  setconf dartfmt BIN_DIR "/opt/$pkgname-sdk/bin"
-  setconf dartfmt SDK_DIR "/opt/$pkgname-sdk/"
+  for _f in dart2js dartanalyzer pub dartfmt dartdevc dartdevk dartdoc; do
+    setconf $_f BIN_DIR "/opt/$pkgname-sdk/bin"
+    setconf $_f PROG_NAME "/opt/$pkgname-sdk/bin/$_f"
+    setconf $_f SDK_DIR "/opt/$pkgname-sdk/"
+  done
 
   # Extract license (AUTHORS and LICENSE files are missing)
   head -n5 "../include/dart_api.h" > ../../LICENSE
@@ -47,7 +45,7 @@
   cp -a "$pkgname-sdk/"* "$pkgdir/opt/$pkgname-sdk/"
 
   # Set up symbolic links for the executables
-  for f in dart dart2js dartanalyzer pub dartfmt dartdevc; do
+  for f in dart dart2js dartanalyzer pub dartfmt dartdevc dartdevk dartdoc; do
     ln -s "/opt/$pkgname-sdk/bin/$f" "$pkgdir/usr/bin/$f"
   done
 



More information about the arch-commits mailing list