summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Shalygin2019-01-11 16:15:49 +0700
committerKonstantin Shalygin2019-01-11 16:15:49 +0700
commit5bd764eccda975b90eebd752ce9b9f2cd826a7f9 (patch)
tree031300fb5d7769c615baeaaaf3c58e89424adea2
downloadaur-5bd764eccda975b90eebd752ce9b9f2cd826a7f9.tar.gz
First release
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD36
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2226b7065f4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Jan 11 09:15:32 UTC 2019
+pkgbase = ip2geo
+ pkgdesc = Import ipgeo data to files for nginx geoip module
+ pkgver = 1.0.4.1
+ pkgrel = 1
+ url = https://github.com/pm-messiah/ip2geo
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = go
+ source = https://github.com/pm-messiah/ip2geo/archive/v1.0.4-1.tar.gz
+ sha256sums = 10585bcb2de7cef8a063dcacf856a5faddb3676a3f578b5008855a565cd37628
+
+pkgname = ip2geo
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..7c6927b4669
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/*
+src/*
+*.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7f5b577ef4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru>
+# Contributor: Shalygin Konstantin <k0ste@k0ste.ru>
+
+pkgname='ip2geo'
+_wrong_ver='1.0.4-1'
+pkgver='1.0.4.1'
+pkgrel='1'
+pkgdesc='Import ipgeo data to files for nginx geoip module'
+arch=('x86_64' 'i686')
+url="https://github.com/pm-messiah/${pkgname}"
+license=('MIT')
+makedepends=('go')
+source=("${url}/archive/v${_wrong_ver}.tar.gz")
+sha256sums=('10585bcb2de7cef8a063dcacf856a5faddb3676a3f578b5008855a565cd37628')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${_wrong_ver}"
+ export GOPATH="${srcdir}/gopath"
+ export GOBIN="${GOPATH}/bin"
+ mkdir -p "${GOPATH}/src/github.com/m-messiah"
+ ln -snf "${srcdir}/${pkgname}-${_wrong_ver}" "${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
+}
+
+build() {
+ export GOPATH="${srcdir}/gopath"
+ cd "${GOPATH}/src/github.com/m-messiah/${pkgname}"
+ GOOS=linux go build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${_wrong_ver}"
+ install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}