diff options
Diffstat (limited to 'system/alacritty/alacritty.SlackBuild')
-rw-r--r-- | system/alacritty/alacritty.SlackBuild | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild index 171c31515066a..d7b5ac4b25a47 100644 --- a/system/alacritty/alacritty.SlackBuild +++ b/system/alacritty/alacritty.SlackBuild @@ -69,8 +69,7 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -# force offline for git crate dependencies -patch -p1 < $CWD/offline_build.diff +zcat $CWD/6f4ad9bb4f82bfdc4d8aac883a65ddd8c6acd45d.patch.gz | patch -p1 # build offline # configuration tells cargo to use the configured directory @@ -385,6 +384,7 @@ mkdir vendor winapi=0.3.6 \ wincolor=1.0.1 \ winit=0.18.0 \ + winpty-sys=0.4.3 \ winreg=0.4.0 \ ws2_32-sys=0.2.1 \ x11-clipboard=0.2.2 \ @@ -394,17 +394,11 @@ mkdir vendor xml-rs=0.7.0 \ xml-rs=0.8.0 \ yaml-rust=0.4.2 \ - zip=0.4.2 \ - winpty=1.1.0 ; do + zip=0.4.2; do dep="$(echo "$dependency" | cut -d= -f1)" ver="$(echo "$dependency" | cut -d= -f2)" - if [ "$dep" = "winpty" ] ; then - tar xvf "$CWD/winpty-9ccec6459c2c8b7555846910c12ba697b688f44d.tar.gz" - mv winpty-9ccec6459c2c8b7555846910c12ba697b688f44d winpty-1.1.0 - else - tar xvf $CWD/$dep-$ver.crate - fi + tar xvf $CWD/$dep-$ver.crate touch $dep-$ver/.cargo-ok @@ -421,11 +415,7 @@ mkdir vendor printf " },\n" printf ' "package": "' - if [ "$dep" = "winpty" ] ; then - printf "%s\"\\n" "bd075c24ae8cc8cfa57fd188683118d302c024a6b2413cc6c8d5406a59eca2e2" - else - sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/' - fi + sha256sum "$CWD/$dep-$ver.crate" | cut -f1 -d' ' | sed 's/$/"/' 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 |