# Depends on: python

description="Port of sgmllib to Python3"
url="https://github.com/kurtmckee/feedparser"
packager="tnut <tnut@nutyx.org>"
contributors="Rémy"

name=python-sgmllib
version=5.2.1
release=2

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

build() {

cd feedparser-$version

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

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

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