diff options
Diffstat (limited to 'system/system76-power/system76-power.SlackBuild')
-rw-r--r-- | system/system76-power/system76-power.SlackBuild | 8 |
1 files changed, 7 insertions, 1 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" |