description="Port of sgmllib to Python3"
url="https://github.com/kurtmckee/feedparser"

packager="tnut <tnut@nutyx.org>"
contributors="Rémy"

makedepends=(python)

name=python-sgmllib
version=5.2.1
release=4

source=(https://github.com/kurtmckee/feedparser/archive/$version.tar.gz)

build() {

cd feedparser-$version

python3 /usr/lib/python3.8/compileall.py feedparser/sgmllib3.py

install -Dm644 feedparser/sgmllib3.py \
    "$PKG/usr/lib/python3.8/site-packages/sgmllib.py"

install -Dm644 feedparser/__pycache__/sgmllib3.cpython-38.pyc \
    "$PKG/usr/lib/python3.8/site-packages/__pycache__/sgmllib.cpython-38.pyc"
  
}
