34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Template file for 'public-suffix'
|
|
pkgname=public-suffix
|
|
version=2024.08.25
|
|
revision=1
|
|
_rev=fa153b452b9e8ab1ba52982bde6ace5ecdaddd77
|
|
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="ca3eaca00018c313097b5b86754daccbb2c07ffffda99b8d4a1e857b00e931b9
|
|
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
|
|
}
|