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

Alexander Rødseth arodseth at nymeria.archlinux.org
Sat Mar 1 23:40:34 UTC 2014


    Date: Sunday, March 2, 2014 @ 00:40:34
  Author: arodseth
Revision: 106381

upgpkg: dart 1.2-1

Modified:
  dart/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-01 19:26:09 UTC (rev 106380)
+++ PKGBUILD	2014-03-01 23:40:34 UTC (rev 106381)
@@ -6,7 +6,7 @@
 # Contributor: Julien Nicoulaud <julien.nicoulaud at gmail.com>
 
 pkgname=dart
-pkgver=1.1.3
+pkgver=1.2
 pkgrel=1
 pkgdesc='The dart programming language SDK'
 arch=('x86_64' 'i686')
@@ -17,15 +17,11 @@
 options=('!strip')
 
 if [[ $CARCH == x86_64 ]]; then
-  source=("$pkgname-$pkgver-64.zip::http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip"
-          'license.html::https://code.google.com/intl/no/google_bsd_license.html')
-  sha256sums=('5019225dd58ffba9ae726f100993345e2801f7b59f6b49edbb5020ec3621e67a'
-            'de16a5ac94310b1bdfc27a2a6d620531172bb31af894caeced37af41fb8e2650')
+  source=("$pkgname-$pkgver-64.zip::http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip")
+  sha256sums=('d288122e9413710da1ec5b8966c8027073f5c64b83a9a90c61125aa90b30c4ec')
 else
-  source=("$pkgname-$pkgver-32.zip::http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-ia32-release.zip"
-          'license.html::https://code.google.com/intl/no/google_bsd_license.html')
-  sha256sums=('de33b20167727d50903c1cf33d86320472d728f93641ec37a541a233e377acc4'
-            'de16a5ac94310b1bdfc27a2a6d620531172bb31af894caeced37af41fb8e2650')
+source=("$pkgname-$pkgver-32.zip::http://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-ia32-release.zip")
+  sha256sums=('beb0f817870f76308beb446c87b2918495bd7735fad8291cec127dcf641f6c52')
 fi
 
 prepare() {
@@ -39,12 +35,17 @@
   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 dartdoc BIN_DIR "/opt/$pkgname-sdk/bin"
+  setconf docgen BIN_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/"
 
   # Fix missing "fi" and missing newline
   echo -e "fi\n" >> pub
+
+  # Extract license (AUTHORS and LICENSE files are missing
+  head -n5 "../include/dart_api.h" > ../../LICENSE
 }
 
 package() {
@@ -55,7 +56,7 @@
   cp -a "$pkgname-sdk/"* "$pkgdir/opt/$pkgname-sdk/"
 
   # Set up symbolic links for the executables
-  for f in dart dart2js dartanalyzer dartdoc pub; do
+  for f in dart dart2js dartanalyzer docgen pub dartfmt; do
     ln -s "/opt/$pkgname-sdk/bin/$f" "$pkgdir/usr/bin/$f"
   done
 
@@ -65,8 +66,8 @@
   done
 
   # BSD License
-  install -Dm644 license.html \
-    "$pkgdir/usr/share/licenses/$pkgname/license.html"
+  install -Dm644 LICENSE \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list