summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorholishing2020-04-12 21:48:51 +0800
committerholishing2020-04-12 21:48:51 +0800
commit920253515c2c22fba8ed95c549db4a840ec96891 (patch)
treed61169e6ced3704c8fd92c9fad47fd3bf130ad27
parent36d7abb04c2663d35a64f115a81c23982a038047 (diff)
downloadaur-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--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9b090d7dd3e0..6a44198e083f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index d589d8cf4ef2..bc7c2fa16f04 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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)