[arch-commits] Commit in v2ray-geoip/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Jan 8 10:11:52 UTC 2020


    Date: Wednesday, January 8, 2020 @ 10:11:51
  Author: felixonmars
Revision: 550167

upgpkg: v2ray-geoip 202001080103-1

Modified:
  v2ray-geoip/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++---------------------
 1 file changed, 4 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-08 10:11:35 UTC (rev 550166)
+++ PKGBUILD	2020-01-08 10:11:51 UTC (rev 550167)
@@ -1,32 +1,15 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=v2ray-geoip
-pkgver=20191119
+pkgver=202001080103
 pkgrel=1
 pkgdesc="GeoIP List for V2Ray"
 arch=('any')
 url="https://github.com/v2ray/geoip"
 license=('MIT')
-makedepends=('go-pie' 'git')
-source=("GeoLite2-Country-CSV-$pkgver.zip::https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip")
-sha512sums=('ede6b3a69db469d00e6f05a13baed7307e02f9d59198b93a497ab37250f6888f8cfdd1af2ddf169c5d01c134bafb2ec94c7320b26fa34d19f7934ac81427fdf3')
+source=("geoip-$pkgver.dat::https://github.com/v2ray/geoip/releases/download/$pkgver/geoip.dat")
+sha512sums=('b38b229ddbbd2e306dc0ce318f7e5b7449ad531408f405f0d10c8105d59c5f5b1be04ed62746a011d644c21b88f8ad98bf6b1454910351bd3e27abec0af80294')
 
-prepare() {
-  mkdir .gopath
-  export GOPATH="$srcdir/.gopath"
-
-  go get -insecure github.com/v2ray/geoip
-
-  mv "$srcdir"/GeoLite2-Country-CSV_$pkgver .gopath/geoip
-}
-
-build() {
-  cd .gopath
-  bin/geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv
-}
-
 package() {
-  cd .gopath
-  install -Dm755 geoip.dat "$pkgdir"/usr/lib/v2ray/geoip.dat
-  install -Dm644 "$GOPATH"/src/github.com/v2ray/geoip/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm755 geoip-$pkgver.dat "$pkgdir"/usr/lib/v2ray/geoip.dat
 }



More information about the arch-commits mailing list