# Description: Cross-vendor public domain suffix database
# URL: https://github.com/publicsuffix/list
# Maintainer: Tim Biermann, tbier at posteo dot de

name=publicsuffix-list
version=20230812.1829.5e6ac3a
_commit=5e6ac3a082505ac4cf08858bdb38382d9a912833
release=1
source=(https://github.com/publicsuffix/list/archive/$_commit/$name-$version.tar.gz)


build() {
  cd list-$_commit

  install -D -m 644 -t $PKG/usr/share/publicsuffix \
    public_suffix_list.dat tests/test_psl.txt

  ln -s public_suffix_list.dat $PKG/usr/share/publicsuffix/effective_tld_names.dat
}
