52 lines
1.7 KiB
Bash
52 lines
1.7 KiB
Bash
name='python3-mdit-py-plugins'
|
|
version='0.5.0'
|
|
release='3'
|
|
desc='Collection of plugins for markdown-it-py'
|
|
desc_ru='Коллекция плагинов для библиотеки Python markdown-it-py'
|
|
homepage='https://github.com/executablebooks/mdit-py-plugins'
|
|
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
|
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
|
architectures=('all')
|
|
license=('MIT')
|
|
provides=('mdit-py-plugins')
|
|
conflicts=('mdit-py-plugins')
|
|
|
|
deps=('python3' 'python3-markdown-it-py')
|
|
|
|
deps_alt=('python3' 'python3-module-markdown-it-py')
|
|
deps_arch=('python' 'python-markdown-it-py')
|
|
deps_debian=('python3' 'python3-markdown-it')
|
|
deps_fedora=("${deps[@]}")
|
|
deps_redos=("${deps[@]}")
|
|
deps_rhel=("${deps[@]}")
|
|
deps_rosa=("${deps[@]}")
|
|
deps_alpine=('python3' 'python3-markdown-it-py')
|
|
|
|
build_deps=('python3' 'python3-pip')
|
|
|
|
build_deps_alt=('python3' 'python3-module-pip')
|
|
build_deps_arch=('python' 'python-pip')
|
|
build_deps_debian=('python3' 'python3-pip')
|
|
build_deps_fedora=("${build_deps[@]}")
|
|
build_deps_redos=("${build_deps[@]}")
|
|
build_deps_rhel=("${build_deps[@]}")
|
|
build_deps_rosa=("${build_deps[@]}")
|
|
build_deps_alpine=('python3' 'py3-pip')
|
|
|
|
sources=("https://files.pythonhosted.org/packages/source/m/mdit-py-plugins/mdit_py_plugins-0.5.0.tar.gz")
|
|
checksums=('blake2b-256:b2fda756d36c0bfba5f6e39a1cdbdbfdd448dc02692467d83816dff4592a1ebc')
|
|
|
|
build() {
|
|
cd "$srcdir/mdit_py_plugins-${version}"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/mdit_py_plugins-${version}"
|
|
pip install --root="${pkgdir}/" . --no-deps --ignore-installed --disable-pip-version-check
|
|
}
|
|
|
|
files() {
|
|
files-find "./usr/local/lib/python3.*/site-packages/mdit_py_plugins"
|
|
files-find "./usr/local/lib/python3.*/site-packages/mdit_py_plugins-*.dist-info"
|
|
} |