Compare commits
No commits in common. "1b9f12c2428337a7dc2536915da5883802e01ef1" and "ace7a0e1440078adc1c8355e498fb8926c09a0fd" have entirely different histories.
1b9f12c242
...
ace7a0e144
@ -1,49 +0,0 @@
|
|||||||
_pkgname=markdown-it-py
|
|
||||||
name='python3-markdown-it-py'
|
|
||||||
version='3.0.0'
|
|
||||||
release='1'
|
|
||||||
desc='Python port of markdown-it. Markdown parsing, done right!'
|
|
||||||
homepage='https://github.com/executablebooks/markdown-it-py'
|
|
||||||
license=('MIT')
|
|
||||||
architectures=('all')
|
|
||||||
|
|
||||||
deps=(
|
|
||||||
'python3-mdurl'
|
|
||||||
)
|
|
||||||
build_deps=(
|
|
||||||
'python3-build'
|
|
||||||
'python3-flit-core'
|
|
||||||
'python3-installer'
|
|
||||||
'python-pytest'
|
|
||||||
'python-pytest-regressions'
|
|
||||||
'python-mdit_py_plugins'
|
|
||||||
'python-linkify-it-py'
|
|
||||||
)
|
|
||||||
|
|
||||||
#opt_deps=(
|
|
||||||
# 'python-mdit_py_plugins: core plugins'
|
|
||||||
#)
|
|
||||||
|
|
||||||
sources=("https://github.com/executablebooks/markdown-it-py/archive/v$version.tar.gz")
|
|
||||||
checksums=('SKIP')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $_pkgname-$version
|
|
||||||
|
|
||||||
python -m build
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd $_pkgname-$version
|
|
||||||
|
|
||||||
python -m pytest tests
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd $_pkgname-$version
|
|
||||||
|
|
||||||
python -m installer -d "$pkgdir" dist/*.whl
|
|
||||||
|
|
||||||
install LICENSE ./$name/LICENSE
|
|
||||||
}
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
|||||||
name='python3-pygments'
|
|
||||||
version='2.18.0'
|
|
||||||
release='1'
|
|
||||||
desc='Python syntax highlighter'
|
|
||||||
homepage='https://pygments.org/'
|
|
||||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
|
||||||
architectures=('all')
|
|
||||||
license=('BSD-2-Clause')
|
|
||||||
provides=('pygmentize')
|
|
||||||
conflicts=('pygmentize')
|
|
||||||
|
|
||||||
deps=(
|
|
||||||
'python'
|
|
||||||
)
|
|
||||||
|
|
||||||
build_deps=(
|
|
||||||
'python3-setuptools'
|
|
||||||
'python3-sphinx'
|
|
||||||
'python3-wcag-contrast-ratio'
|
|
||||||
'python3-build'
|
|
||||||
'python3-installer'
|
|
||||||
'python3-wheel'
|
|
||||||
'python3-hatchling'
|
|
||||||
'python3-pytest'
|
|
||||||
'python3-lxml'
|
|
||||||
)
|
|
||||||
build_deps_almalinux=(
|
|
||||||
'python3-setuptools'
|
|
||||||
'python3-sphinx'
|
|
||||||
'python3-wcag-contrast-ratio'
|
|
||||||
'python3-build'
|
|
||||||
'python3-installer'
|
|
||||||
'python3-setuptools-wheel'
|
|
||||||
'python3-hatchling'
|
|
||||||
'python3-pytest'
|
|
||||||
'python3-lxml'
|
|
||||||
)
|
|
||||||
|
|
||||||
sources=("https://pypi.org/packages/source/p/pygments/pygments-$version.tar.gz")
|
|
||||||
checksums=('SKIP')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd pygments-$version
|
|
||||||
python -m build --wheel --no-isolation
|
|
||||||
make -C doc html
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd pygments-$version
|
|
||||||
PYTHONDONTWRITEBYTECODE=1 pytest
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd pygments-$version
|
|
||||||
|
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
||||||
install-license LICENSE ./python3-pygments/LICENSE
|
|
||||||
|
|
||||||
mkdir -p "$pkgdir/usr/share/doc"
|
|
||||||
cp -rT doc/_build/html "$pkgdir/usr/share/doc/$name"
|
|
||||||
install -Dm644 doc/pygmentize.1 -t "$pkgdir/usr/share/man/man1"
|
|
||||||
install -Dm644 external/pygments.bashcomp \
|
|
||||||
"$pkgdir/usr/share/bash-completion/completions/pygmentize"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user