Files
ports/main/python3-markdown/spkgbuild
2023-11-03 08:15:23 +00:00

24 lines
790 B
Plaintext

# description : Python implementation of markdown
# homepage : https://pypi.org/project/markdown
# depends : python3-pip
name=python3-markdown
_name=Markdown
version=3.5.1
release=1
#source="https://files.pythonhosted.org/packages/85/7e/133e943e97a943d2f1d8bae0c5060f8ac50e6691754eb9dbe036b047a9bb/Markdown-$version.tar.gz"
source="https://files.pythonhosted.org/packages/source/M/$_name/$_name-$version.tar.gz"
build() {
cd Markdown-$version
if [ -f pyproject.toml -o -d markdown.egg-info ]
then
if [ -d markdown ]
then
/usr/bin/pip3 install --isolate --root=$PKG --no-warn-script-location --ignore-installed --no-deps markdown
else
/usr/bin/pip3 install --isolate --root=$PKG --no-warn-script-location --ignore-installed --no-deps .
fi
fi
}