From 46f417d6f4b7b7e25e0919b0a1c1a3a9f0f85551 Mon Sep 17 00:00:00 2001 From: ketlrznt Date: Wed, 10 Aug 2022 20:47:22 +0800 Subject: [PATCH] New package: v2ray-domain-list-community-20220809072217 --- srcpkgs/v2ray-domain-list-community/template | 32 ++++++++++++++++++++ 1 file changed, 32 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..47be5b4360c4 --- /dev/null +++ b/srcpkgs/v2ray-domain-list-community/template @@ -0,0 +1,32 @@ +# Template file for 'v2ray-domain-list-community' +pkgname=v2ray-domain-list-community +version=20220809072217 +revision=1 +hostmakedepends="xz curl" +short_desc="Community managed domain list for Project V" +maintainer="ketlrznt " +license="MIT" +homepage="https://github.com/v2fly/domain-list-community" + +_file_name="dlc.dat.xz" + +distfiles="https://github.com/v2fly/domain-list-community/releases/download/${version}/${_file_name}" +checksum=c2571f1be571c7b46f689a41f9c00409d39f5bc0da876e232ad0db6671e7e4cf + +pre_extract() { + mkdir -p $wrksrc + cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_file_name} ${wrksrc} +} + +do_extract() { + xz -d dlc.dat.xz +} + +do_install() { + vinstall dlc.dat 0644 usr/share/v2ray geosite.dat +} + +post_install() { + curl https://raw.githubusercontent.com/v2fly/domain-list-community/master/LICENSE > LICENSE + vlicense LICENSE +}