void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

New package: v2ray-domain-list-community-20220809072217

Open ketlrznt opened this issue 3 years ago • 6 comments

Testing the changes

  • I tested the changes in this PR: YES

New package

Local build testing

  • I built this PR locally for my native architecture, (x86_64-glibc)
  • I built this PR locally for these architectures
    • i686 (native masterdir)
    • i686 (crossbuild)

ketlrznt avatar Aug 10 '22 14:08 ketlrznt

Notes:

ghost avatar Aug 10 '22 14:08 ghost

use something like this to fix the 2nd bullet point

https://github.com/void-linux/void-packages/blob/a15f0148180c7cb23809080cc14ccdade54e0087/srcpkgs/kubernetes-kind/template#L18

classabbyamp avatar Aug 10 '22 19:08 classabbyamp

use something like this to fix the 2nd bullet point

https://github.com/void-linux/void-packages/blob/a15f0148180c7cb23809080cc14ccdade54e0087/srcpkgs/kubernetes-kind/template#L18

Done.

ghost avatar Aug 10 '22 23:08 ghost

I forgot to fetch LICENSE and install it. I will update this commit later.

ghost avatar Aug 11 '22 02:08 ghost

this is a bit cleaner

# Template file for 'v2ray-domain-list-community'
pkgname=v2ray-domain-list-community
version=20220809072217
revision=1
build_style=fetch
short_desc="Community managed domain list for Project V"
maintainer="ketlrznt <[email protected]>"
license="MIT"
homepage="https://github.com/v2fly/domain-list-community"
distfiles="https://github.com/v2fly/domain-list-community/releases/download/${version}/dlc.dat
 https://raw.githubusercontent.com/v2fly/domain-list-community/master/LICENSE"
checksum="fb7312ba36be5865b14858f44dff3dadf996eb5623bd23d63ead448feb40622d
 b9d84a22870d3f21c91a4c6e410c9cc51d00902f5233ad0c84011479244bf7d2"

do_install() {
	vinstall dlc.dat 0644 usr/share/v2ray geosite.dat
	vlicense LICENSE
}

classabbyamp avatar Aug 11 '22 03:08 classabbyamp

this is a bit cleaner

# Template file for 'v2ray-domain-list-community'
pkgname=v2ray-domain-list-community
version=20220809072217
revision=1
build_style=fetch
short_desc="Community managed domain list for Project V"
maintainer="ketlrznt <[email protected]>"
license="MIT"
homepage="https://github.com/v2fly/domain-list-community"
distfiles="https://github.com/v2fly/domain-list-community/releases/download/${version}/dlc.dat
 https://raw.githubusercontent.com/v2fly/domain-list-community/master/LICENSE"
checksum="fb7312ba36be5865b14858f44dff3dadf996eb5623bd23d63ead448feb40622d
 b9d84a22870d3f21c91a4c6e410c9cc51d00902f5233ad0c84011479244bf7d2"

do_install() {
	vinstall dlc.dat 0644 usr/share/v2ray geosite.dat
	vlicense LICENSE
}

Thank you! As a packaging newbie I refered Manual and xnew to write template, section Optional variables indicates that distfile should be compressed data. I don't know such usage (fetch build style). Now I know it.

ghost avatar Aug 11 '22 03:08 ghost