blob: 16672fea7693a38558ae8c86ce56e2cced7e32ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: envolution
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-markitdown
_pkgname=${pkgname#python-}
pkgver=0.1.1
pkgrel=2
pkgdesc="Utility tool for converting various files to Markdown"
arch=(any)
url="https://github.com/microsoft/markitdown"
license=(MIT)
depends=(
python
python-beautifulsoup4
python-requests
python-mammoth
python-markdownify
python-numpy
python-pptx
python-pandas
python-openpyxl
python-pdfminer
python-puremagic
python-pydub
python-youtube-transcript-api
python-speechrecognition
python-pathvalidate
python-cobble #not requested in pyproject.toml but apparently needed at runtime
python-olefile
python-magika
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
python-hatch
)
#source=("https://files.pythonhosted.org/packages/14/d8/e23bd08cd9749cb16ec5832a9e02d5f715efe2c7fc7e2637afaf41df2eee/${_pkgname}-${pkgver}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/microsoft/markitdown/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('9c9d1cdc627dfa105a1924dd9745915a9f0a4b0c04a21ffff20576b5446126da')
_pkgdir="$_pkgname-$pkgver/packages/markitdown/"
build() {
cd "$_pkgdir"
python -m build --wheel --no-isolation
}
check() {
cd "$_pkgdir"
# python -m pytest # no test files yet
}
package() {
cd "$_pkgdir"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 ../../LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
# vim: ts=2 sw=2 et:
# vim:set ts=2 sw=2 et:
|