[arch-commits] Commit in v2ray-domain-list-community/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jun 16 08:38:12 UTC 2019


    Date: Sunday, June 16, 2019 @ 08:38:11
  Author: felixonmars
Revision: 481816

archrelease: copy trunk to community-x86_64

Added:
  v2ray-domain-list-community/repos/community-x86_64/
  v2ray-domain-list-community/repos/community-x86_64/PKGBUILD
    (from rev 481815, v2ray-domain-list-community/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: v2ray-domain-list-community/repos/community-x86_64/PKGBUILD (from rev 481815, v2ray-domain-list-community/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-06-16 08:38:11 UTC (rev 481816)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=v2ray-domain-list-community
+pkgver=20190613.1
+pkgrel=1
+pkgdesc="A list of domains to be used as geosites for routing purpose in Project V"
+arch=('x86_64')
+url="https://github.com/v2ray/domain-list-community"
+license=('MIT')
+makedepends=('go-pie' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/v2ray/domain-list-community/archive/$pkgver.tar.gz")
+sha512sums=('d10364d04af6cd8815fce991bd98dfa55c777a3b5971cf34ca75c3da8efdfff36ec5d499c4345247f4287dda8111e6639459181419f61c608c66a01af7a98520')
+
+prepare() {
+  mkdir .gopath
+  export GOPATH="$srcdir/.gopath"
+
+  mkdir -p .gopath/src/github.com/v2ray
+  ln -s "$PWD/domain-list-community-$pkgver" .gopath/src/github.com/v2ray/domain-list-community
+
+  go get github.com/golang/protobuf/proto v2ray.com/core/app/router
+}
+
+build() {
+  cd .gopath
+  go run ./src/github.com/v2ray/domain-list-community/main.go
+}
+
+package() {
+  cd .gopath
+  install -Dm755 dlc.dat "$pkgdir"/etc/v2ray/geosite.dat
+  install -Dm644 "$srcdir"/domain-list-community-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list