secret
Created

Patch for <https://aur.archlinux.org/packages/lonesurvivor/>, apply with `patch PKGBUILD < PKGBUILD.patch`.

  • Download Gist
PKGBUILD.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
@@ -15,41 +15,13 @@
esac
PKGEXT='.pkg.tar'
case $CARCH in
- i686) _arch=i386; md5sums=('c267e7b6c9a20ca40ee8e795bc92a3fa' 'c267e7b6c9a20ca40ee8e795bc92a3fa' '7520a6930d3bc2cbc62a83f0724f7dce');;
- x86_64) _arch=amd64; md5sums=('4d099e1bf1a4fdb30b8b7cff3b485d38' '4d099e1bf1a4fdb30b8b7cff3b485d38' '7520a6930d3bc2cbc62a83f0724f7dce');;
+ i686) _arch=i386; md5sums=('c267e7b6c9a20ca40ee8e795bc92a3fa' '7520a6930d3bc2cbc62a83f0724f7dce');;
+ x86_64) _arch=amd64; md5sums=('4d099e1bf1a4fdb30b8b7cff3b485d38' '7520a6930d3bc2cbc62a83f0724f7dce');;
esac
-source=($pkgname-$_pkgver-$_arch.tar.gz::"https://www.humblebundle.com/login"
- $pkgname-$_pkgver-$_arch.tar.gz::"http://www.humblebundle.com/downloads?key=${_humblebundleVkey}"
+source=(hib://$pkgname-$_pkgver-$_arch.tar.gz
$pkgname.desktop)
options=(!strip)
-
-_char=\'
-DLAGENTS=('https::/bin/echo %o > /tmp/arch && sed -i "s/.part//" /tmp/arch &&
- /usr/bin/curl -s --cookie-jar /tmp/cjar --output /dev/null %u && cp /tmp/cjar ./ &&
- /usr/bin/curl -sL --cookie /tmp/cjar --cookie-jar /tmp/cjar --data "username=$_humbleemail" --data "password=$_humblepassword" %u |
- grep -f /tmp/arch |grep -o -E "data-web=[^ ]+"| sed -e "s/data-web=\([^ ]*\)/\1/" > /tmp/url &&
- sed -i "s/$_char//g" /tmp/url &&
- /usr/bin/curl --cookie /tmp/cjar --cookie-jar /tmp/cjar -fLC - --retry 3 --retry-delay 3 -o %o "$(</tmp/url)" &&
- rm -f /tmp/{arch,url} || return 0'
- "http::/bin/echo %o > /tmp/arch && sed -i \"s/.part//\" /tmp/arch &&
- /usr/bin/curl -sL %u |grep -f /tmp/arch | grep -o -E \"data-web=[^ ]+\" | sed -e \"s/data-web='\(.*\)'/url = \1/\" > /tmp/url &&
- /usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o -K /tmp/url && rm /tmp/{url,arch}")
-
-if [[ ! -f $SRCDEST/${source[0]%%:*} ]]; then
- if [[ -z $_humbleemail || -z $_humblepassword ]]; then
- if [[ -z $_humblebundleVkey ]]; then
- msg "if you have bound your email and password to your account, "
- msg "please export the values _humbleemail and _humblepassword so"
- msg "that you can be logged in to download the game."
- echo
- msg "if you have not bound the key to an email, "
- msg "please export _humblebundleVkey in your .bashrc"
- return 1
- fi
- fi
-fi
-
package () {
cd $srcdir/$pkgname
install -Dm755 "$srcdir/$pkgname/LoneSurvivor" "$pkgdir/usr/bin/$pkgname"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.