void-packages/srcpkgs/public-suffix/template

34 lines
1.0 KiB
Bash

# Template file for 'public-suffix'
pkgname=public-suffix
version=2024.03.28
revision=1
_rev=353cc6224ead35d3905f20d1e158772d791839c7
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="396e9a1fbf949e07fac21946730a27e8fda7cc12055b192b40bed39a91305843
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
}