diff options
author | holishing | 2020-04-12 21:48:51 +0800 |
---|---|---|
committer | holishing | 2020-04-12 21:48:51 +0800 |
commit | 920253515c2c22fba8ed95c549db4a840ec96891 (patch) | |
tree | d61169e6ced3704c8fd92c9fad47fd3bf130ad27 | |
parent | 36d7abb04c2663d35a64f115a81c23982a038047 (diff) | |
download | aur-920253515c2c22fba8ed95c549db4a840ec96891.tar.gz |
chanage user-agent downloading upstream package
thanks to @yan12125 that we can use this way to automatically build AUR package
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = esunbank-webatm pkgdesc = WebATM service tool for Esun Bank at Taiwan pkgver = 1.0.0.5 - pkgrel = 3 + pkgrel = 4 url = https://www.esunbank.com.tw arch = x86_64 license = custom @@ -13,7 +13,7 @@ pkgbase = esunbank-webatm depends = libcanberra depends = nss depends = pcsclite - source = local://EsunATM.deb + source = https://netbank.esunbank.com.tw/webatm/assets/ActiveX/EsunATM.deb sha512sums = 176fdf1d9b331deabe3037a4e2ba49783b08f4cb430c1bbab21755e4b4d17185407c487f53da1cfa2909187fec7ed723bdea20fc4397ff0ad33fcfd973d4d48b pkgname = esunbank-webatm @@ -1,18 +1,19 @@ # Contributor: holishing pkgname=esunbank-webatm pkgver=1.0.0.5 -pkgrel=3 +pkgrel=4 pkgdesc="WebATM service tool for Esun Bank at Taiwan" arch=('x86_64') url="https://www.esunbank.com.tw" license=('custom') makedepends=('libarchive' 'icoutils') depends=('desktop-file-utils' 'hicolor-icon-theme' 'libappindicator-gtk2' 'libcanberra' 'nss' 'pcsclite') -## please use browser agent to download deb package: -## https://netbank.esunbank.com.tw/webatm/assets/ActiveX/EsunATM.deb -source=('local://EsunATM.deb') +source=('https://netbank.esunbank.com.tw/webatm/assets/ActiveX/EsunATM.deb') sha512sums=('176fdf1d9b331deabe3037a4e2ba49783b08f4cb430c1bbab21755e4b4d17185407c487f53da1cfa2909187fec7ed723bdea20fc4397ff0ad33fcfd973d4d48b') +# Esun website does not like curl +DLAGENTS=('https::/usr/bin/curl -A "Mozilla" -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u') + prepare() { bsdtar -xvf data.tar.xz -C "${srcdir}" # Fix directories structure differencies (We cannot do this because the path is fixed) |