summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD13
2 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5b228448103..5892ff1e066 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,14 @@
-# Generated by mksrcinfo v8
-# Tue Apr 23 06:21:38 UTC 2019
pkgbase = ip2geo
pkgdesc = Import ipgeo data to files for nginx geoip module
- pkgver = 1.0.9
+ pkgver = 1.1.2
pkgrel = 1
url = https://github.com/m-messiah/ip2geo
arch = x86_64
arch = i686
license = MIT
makedepends = go
- source = https://github.com/m-messiah/ip2geo/archive/v1.0.9.tar.gz
- sha256sums = 09cfa2441326f6549ea28ef2b07455262f50dc2f5b4b4362f9be647944fc8fca
+ source = https://github.com/m-messiah/ip2geo/archive/v1.1.2.tar.gz
+ sha256sums = 43efca4fe6450db72c82c3c95cb5860941a60abc1f8adf1325d8f2f5c3999449
pkgname = ip2geo
diff --git a/PKGBUILD b/PKGBUILD
index 6868fb50faa..552217033a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
pkgname='ip2geo'
-pkgver='1.0.9'
+pkgver='1.1.2'
pkgrel='1'
pkgdesc='Import ipgeo data to files for nginx geoip module'
arch=('x86_64' 'i686')
@@ -10,17 +10,22 @@ url="https://github.com/m-messiah/${pkgname}"
license=('MIT')
makedepends=('go')
source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('09cfa2441326f6549ea28ef2b07455262f50dc2f5b4b4362f9be647944fc8fca')
+sha256sums=('43efca4fe6450db72c82c3c95cb5860941a60abc1f8adf1325d8f2f5c3999449')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # https://github.com/m-messiah/ip2geo/issues/28
+ echo -e "\nconst VERSION = \"${pkgver}\"" >> version.go
+
export GOPATH="${srcdir}/gopath"
export GOBIN="${GOPATH}/bin"
mkdir -p "${GOPATH}/src/github.com/m-messiah"
ln -snf "${srcdir}/${pkgname}-${pkgver}" "${GOPATH}/src/github.com/m-messiah/${pkgname}"
cd ${GOPATH}
- go get -v -x github.com/fatih/color
- go get -v -x golang.org/x/net/html/charset
+ go get -v -x github.com/fatih/color
+ go get -v -x github.com/jinzhu/configor
+ go get -v -x golang.org/x/net/html/charset
}
build() {