void-packages/srcpkgs/public-suffix/template

34 lines
1.0 KiB
Bash

# Template file for 'public-suffix'
pkgname=public-suffix
version=2024.03.01
revision=1
_rev=d8a01c0e7ebeb9705782caa5a72da2dd234eb028
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="3916a1e2204cde8037ea373c6afcc15b01843cd1df076ad0ab9227ff755c3a1d
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
}