aboutsummaryrefslogtreecommitdiff
path: root/system/system76-power
diff options
context:
space:
mode:
authorErich Ritz <erich.public@protonmail.com>2022-03-01 15:25:57 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-03 15:56:38 +0700
commit9b05ff7f022bf023c22b1b142e664cfb6fdbefbc (patch)
tree827d5253901d56db957af0190e69b1a4a5f61f49 /system/system76-power
parent4c7d39952b504c495b722b53d0e47976c131cf48 (diff)
system/system76-power: Fix to respect Content-disposition header.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/system76-power')
-rw-r--r--system/system76-power/system76-power.SlackBuild8
-rw-r--r--system/system76-power/system76-power.info2
2 files changed, 8 insertions, 2 deletions
diff --git a/system/system76-power/system76-power.SlackBuild b/system/system76-power/system76-power.SlackBuild
index bd730b6213d8e..0064a6565a3d1 100644
--- a/system/system76-power/system76-power.SlackBuild
+++ b/system/system76-power/system76-power.SlackBuild
@@ -26,12 +26,15 @@
# incorrect. They work OK when using a client that doesn't respect the
# Content-disposition header (e.g. wget in its default config), but
# they'll break with clients that do respect it.
+#
+# 20220301 etr: Fix script to work with Content-disposition-safe download URL.
+# Bit hackish, but it works.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=system76-power
VERSION=${VERSION:-1.1.20}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -125,6 +128,9 @@ mkdir vendor
CRATE_FILE=$CWD/$dep-$ver.crate
if [ -z "$cksum" ] ; then
+ if [ "$dep" = "sysfs-class" ] ; then
+ CRATE_FILE=$CWD/pop-os-sysfs-class-0.1.3-1-gab63e7f.tar.gz
+ fi
mkdir $dep-$ver
tar xvf $CRATE_FILE -C $dep-$ver --strip-components=1
cksum="null"
diff --git a/system/system76-power/system76-power.info b/system/system76-power/system76-power.info
index 86d702e017371..b5aa6026008cf 100644
--- a/system/system76-power/system76-power.info
+++ b/system/system76-power/system76-power.info
@@ -2,7 +2,7 @@ PRGNAM="system76-power"
VERSION="1.1.20"
HOMEPAGE="https://github.com/pop-os/system76-power"
DOWNLOAD="https://github.com/pop-os/system76-power/archive/1.1.20/system76-power-1.1.20.tar.gz \
- https://github.com/pop-os/sysfs-class/tarball/ab63e7f638aadfaf896a02e53cf330343d331337/pop-os-sysfs-class-0.1.3.crate \
+ https://github.com/pop-os/sysfs-class/tarball/ab63e7f638aadfaf896a02e53cf330343d331337/pop-os-sysfs-class-0.1.3-1-gab63e7f.tar.gz \
https://crates-io.s3-us-west-1.amazonaws.com/crates/ansi_term/ansi_term-0.11.0.crate \
https://crates-io.s3-us-west-1.amazonaws.com/crates/atty/atty-0.2.14.crate \
https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.1.crate \