aboutsummaryrefslogtreecommitdiff
path: root/system/system76-power
diff options
context:
space:
mode:
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 \