aboutsummaryrefslogtreecommitdiff
path: root/system/alacritty/alacritty.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/alacritty/alacritty.SlackBuild')
-rw-r--r--system/alacritty/alacritty.SlackBuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild
index eae1e286bb17..3f39249119d6 100644
--- a/system/alacritty/alacritty.SlackBuild
+++ b/system/alacritty/alacritty.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for alacritty
-# Copyright 2017-2019 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2020 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=alacritty
-VERSION=${VERSION:-0.3.3}
+VERSION=${VERSION:-0.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+zcat $CWD/offline_build.diff.gz | patch -p1
+
# build offline
# configuration tells cargo to use the configured directory
# for dependencies instead of downloading from crates.io
@@ -95,7 +97,12 @@ mkdir vendor
ver="$(printf "%s\n" "$dep" | cut -d= -f2)"
dep="$(printf "%s\n" "$dep" | cut -d= -f1)"
- tar xvf $CWD/$dep-$ver.crate
+ if [ "$dep" = "winit" ] ; then
+ tar xvf "$CWD/winit-d1c6506865c7bddbb5fb4d80a613e43ddc1370b5.tar.gz"
+ mv winit-d1c6506865c7bddbb5fb4d80a613e43ddc1370b5 winit-0.20.0-alpha6
+ else
+ tar xvf $CWD/$dep-$ver.crate
+ fi
touch $dep-$ver/.cargo-ok
@@ -112,7 +119,11 @@ mkdir vendor
printf " },\n"
printf ' "package": "'
- sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/'
+ if [ "$dep" = "winit" ] ; then
+ printf "%s\"\\n" "0eb274a21a6f25b86b03d76b7f4e3fdfc5139c5f7a8bd999bee1aca43acd0b37"
+ else
+ sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/'
+ fi
printf "}\n"
} | python -c "import sys, json; data = sys.stdin.read(); print json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : '))" > $dep-$ver/.cargo-checksum.json