aboutsummaryrefslogtreecommitdiff
path: root/development/dart-sdk/dart-sdk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/dart-sdk/dart-sdk.SlackBuild')
-rw-r--r--development/dart-sdk/dart-sdk.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/development/dart-sdk/dart-sdk.SlackBuild b/development/dart-sdk/dart-sdk.SlackBuild
index 5461b5c859..3e2dc23ed0 100644
--- a/development/dart-sdk/dart-sdk.SlackBuild
+++ b/development/dart-sdk/dart-sdk.SlackBuild
@@ -1,8 +1,9 @@
#!/bin/bash
-# Slackware build script for <dart-sdk>
+# Slackware build script for dart-sdk
# Copyright 2016-2020 Zhu Qun-Ying
+# Copyright 2025 Vladislav 'fsLeg' Borisov, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dart-sdk
-VERSION=${VERSION:-2.10.4}
+VERSION=${VERSION:-3.7.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,12 +72,15 @@ cd $PKG/opt
unzip $CWD/dartsdk-linux-$PKG_PLATFORM-release.zip
unzip $CWD/dartdocs-gen-api.zip
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs chmod a+x
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
mv gen-dartdocs $PKG/usr/doc/$PRGNAM-$VERSION/doc
mkdir -p $PKG/etc/profile.d
-cp $CWD/dart-sdk.*sh.new $PKG/etc/profile.d
+install -Dm755 -t $PKG/etc/profile.d $CWD/dart-sdk.*sh.new
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc