From d14446dcac0a3c3075ebe068197986cf974bb2c3 Mon Sep 17 00:00:00 2001 From: ketlrznt Date: Wed, 10 Aug 2022 20:47:22 +0800 Subject: [PATCH] add v2ray-domain-list-community --- srcpkgs/v2ray-domain-list-community/template | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/v2ray-domain-list-community/template diff --git a/srcpkgs/v2ray-domain-list-community/template b/srcpkgs/v2ray-domain-list-community/template new file mode 100644 index 000000000000..2eaa388e0d39 --- /dev/null +++ b/srcpkgs/v2ray-domain-list-community/template @@ -0,0 +1,21 @@ +# Template file for 'v2ray-domain-list-community' +pkgname=v2ray-domain-list-community +version=20220809072217 +revision=1 +wrksrc="domain-list-community-${version}" +build_style=go +go_import_path="github.com/v2fly/domain-list-community" +short_desc="Community managed domain list for Project V" +maintainer="ketlrznt " +license="MIT" +homepage="https://github.com/v2fly/domain-list-community" +distfiles="https://github.com/v2fly/domain-list-community/archive/refs/tags/${version}.tar.gz" +checksum=3583a9dd91ee9d2f514e5ee49360c579ae52d2a3b1f4693ebd6bc0e819cabfe0 + +post_install() { + local binary_file_path=$(find ${GOPATH}/bin/ -name domain-list-community) + $binary_file_path --datapath=${wrksrc}/data --outputname geosite.dat + vinstall geosite.dat 0644 usr/share/v2ray + rm ${DESTDIR}/usr/bin/domain-list-community + vlicense LICENSE +}