2024-02-06 15:40:22 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
# Contributor: Benjamin Vialle <archlinux@vialle.io>
|
2021-05-01 21:15:21 +02:00
|
|
|
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
|
|
|
|
# Contributor: sputnick <gilles *DOT* quenot *AT* gmail *DOT* com>
|
|
|
|
# Contributor: ianux <ianux@free.fr>
|
|
|
|
|
|
|
|
pkgname=woob-git
|
2024-02-06 15:40:22 +01:00
|
|
|
pkgver=3.6.r333.gecb44eab4
|
2021-05-01 21:15:21 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Core library and modules for Web Outside of Browsers"
|
|
|
|
arch=(any)
|
|
|
|
url="https://woob.tech"
|
|
|
|
license=('LGPL3')
|
|
|
|
depends=('python-lxml'
|
|
|
|
'python-cssselect'
|
|
|
|
'python-requests'
|
|
|
|
'python-dateutil'
|
|
|
|
'python-yaml'
|
|
|
|
'python-html2text'
|
|
|
|
'python-six'
|
|
|
|
'python-unidecode'
|
|
|
|
'python-pillow'
|
|
|
|
'python-babel'
|
|
|
|
'python-simplejson')
|
|
|
|
optdepends=('python-prettytable: CLI output formatting'
|
|
|
|
'python-feedparser: required by some modules')
|
2024-02-06 15:40:22 +01:00
|
|
|
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'git')
|
2024-02-06 15:48:27 +01:00
|
|
|
replaces=('woob-headless' 'weboob' 'woob')
|
|
|
|
provides=('woob-headless' 'woob')
|
|
|
|
conflicts=('weboob-headless' 'weboob-git' 'weboob-qt' 'woob')
|
2021-05-01 21:15:21 +02:00
|
|
|
source=("woob::git+https://gitlab.com/woob/woob.git")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/woob"
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/woob"
|
2024-02-06 15:40:22 +01:00
|
|
|
python -m build --wheel --no-isolation
|
2021-05-01 21:15:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/woob"
|
2024-02-06 15:40:22 +01:00
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2021-05-01 21:15:21 +02:00
|
|
|
}
|
|
|
|
|