34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'public-suffix'
|
|
pkgname=public-suffix
|
|
version=2024.07.01
|
|
revision=1
|
|
_rev=6a1ef4345e2e8a54542fa1e58087797ac118fdd7
|
|
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="8f83dca479c88c2e75b695f802022ae83f72ad443c884a89da64041cf17590d8
|
|
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
|
|
}
|