New package: public-suffix-2023.11.21

This commit is contained in:
Đoàn Trần Công Danh 2023-12-06 17:19:34 +07:00 committed by Đoàn Trần Công Danh
parent 99e7daef69
commit 25022e7b5d
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# Template file for 'public-suffix'
pkgname=public-suffix
version=2023.11.21
revision=1
_rev=ae46e510d5e3a13841a188e0506449c311d28716
hostmakedepends="python3"
short_desc="Public Suffix List"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MPL-2.0"
homepage="https://publicsuffix.org/"
distfiles="https://github.com/publicsuffix/list/archive/${_rev}.tar.gz
https://raw.githubusercontent.com/rockdaboot/libpsl/0.21.2/src/psl-make-dafsa"
checksum="c14450569530f999a021a69be485a4ae3a0f103cccd249dbd43b1e6af85c7f10
252e22a3ad8e48542a71ae5625b3c2ca7e9b90ce5edbab68ecf4d0ccec82c604"
skip_extraction="psl-make-dafsa"
post_extract() {
vsrccopy psl-make-dafsa .
}
do_build() {
python3 psl-make-dafsa --output-format=binary \
public_suffix_list.dat public_suffix_list.dafsa
}
do_install() {
# Tools expect to find them here:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1155581
vmkdir usr/share/publicsuffix
vinstall public_suffix_list.dat 644 usr/share/publicsuffix
vinstall public_suffix_list.dafsa 644 usr/share/publicsuffix
}