[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Sun Jun 16 08:37:57 UTC 2019


    Date: Sunday, June 16, 2019 @ 08:37:57
  Author: felixonmars
Revision: 481815

addpkg: v2ray-domain-list-community 20190613.1-1

Added:
  v2ray-domain-list-community/
  v2ray-domain-list-community/repos/
  v2ray-domain-list-community/trunk/
  v2ray-domain-list-community/trunk/PKGBUILD

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

Added: v2ray-domain-list-community/trunk/PKGBUILD
===================================================================
--- v2ray-domain-list-community/trunk/PKGBUILD	                        (rev 0)
+++ v2ray-domain-list-community/trunk/PKGBUILD	2019-06-16 08:37:57 UTC (rev 481815)
@@ -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