Get libwacom-surface from GitHub releases
Automatically download libwacom-surface from its GitHub release page [1] and remove the package from this repository. [1]: https://github.com/qzed/libwacom-surface-deb/releases
This commit is contained in:
parent
e4176a0057
commit
2b8cf4001c
Binary file not shown.
17
setup.sh
17
setup.sh
|
@ -66,9 +66,20 @@ read -rp "Do you want to install the patched libwacom packages? (type yes or no)
|
||||||
uselibwacom;echo
|
uselibwacom;echo
|
||||||
|
|
||||||
if [ "$uselibwacom" = "yes" ]; then
|
if [ "$uselibwacom" = "yes" ]; then
|
||||||
echo "==> Installing patched libwacom packages..."
|
echo "==> Downloading latest libwacom-surface..."
|
||||||
dpkg -i packages/libwacom/*.deb
|
|
||||||
apt-mark hold libwacom
|
urls=$(curl --silent "https://api.github.com/repos/qzed/libwacom-surface-deb/releases/latest" \
|
||||||
|
| tr ',' '\n' \
|
||||||
|
| grep '"browser_download_url":' \
|
||||||
|
| sed -E 's/.*"([^"]+)".*/\1/' \
|
||||||
|
| grep '.deb$')
|
||||||
|
|
||||||
|
wget -P tmp $urls
|
||||||
|
|
||||||
|
echo "==> Installing latest libwacom-surface..."
|
||||||
|
|
||||||
|
dpkg -i tmp/*.deb
|
||||||
|
rm -rf tmp
|
||||||
else
|
else
|
||||||
echo "==> Not touching libwacom"
|
echo "==> Not touching libwacom"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue