summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfengkx2020-12-09 22:47:48 +0800
committerfengkx2020-12-09 22:47:48 +0800
commitcd109ac7a9ec884645a82e180d9354de65ba7783 (patch)
treecf09c608c216a6674e9cb2e880f25172cbb6eda2
parent68fab3725f9f39f15d2c0ad95eb7b865bc93ecff (diff)
downloadaur-cd109ac7a9ec884645a82e180d9354de65ba7783.tar.gz
fix requests
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD9
2 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9a203a3bedc..bb3c1fce484 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,6 +8,7 @@ pkgbase = freedns-go-git
makedepends = git
makedepends = go
makedepends = python
+ makedepends = python-requests
provides = freedns-go
conflicts = freedns-go
source = git+https://github.com/tuna/freedns-go.git
diff --git a/PKGBUILD b/PKGBUILD
index dc23d4a45f7..7652aefb8a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: fengkx <liangkx8237@gmail.com>
pkgname=freedns-go-git
-pkgname_raw=freedns-go
+_pkgname_raw=freedns-go
pkgver=r71.9977496
pkgrel=1
pkgdesc="Optimized DNS Server for Chinese users."
@@ -9,7 +9,7 @@ url="https://github.com/tuna/freedns-go"
license=('MIT')
groups=()
depends=()
-makedepends=('git' 'go' 'python')
+makedepends=('git' 'go' 'python' 'python-requests')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
@@ -26,12 +26,13 @@ pkgver() {
}
prepare() {
- cd "$srcdir/${pkgname_raw}"
+ cd "$srcdir/${_pkgname_raw}"
+ sed -e s/raw.githubusercontent.com/https://g.ioiox.com/https://raw.githubusercontent.com/g chinaip/update_db.py
make update_db
}
build() {
- cd "$srcdir/${pkgname_raw}"
+ cd "$srcdir/${_pkgname_raw}"
make
}